﻿; Events file
; Civ II ToT Original Game extension
; Copyright 1999 MicroProse Software
;
;
; Events text for "Vietnam 1965 - 1975" Scenario - SVN human player
;

;FLAGS USED:
;===========
;SOUTH Vietnam: 1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29
;NORTH Vietnam: 1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24
 
;CONTENTS:
;=========
; 1. Initialization
; 2. Introduction
; 3. SVN/US Flags
; 4. US Reinforcements
; 5. US Free Technologies and Tech Reinforcements
;--- a. Free Technologies (SVN/US is granted free 'YEAR' technologies which opens the research path to advances)
;--- b. Free Tech Reinforcements (SVN/US receive free reinforcements upon discovery of specific techs)
;--- c. Tech Reinforcements with gold cost (SVN/US receive reinforcements upon discovery of specific techs)
; 6. US Replacements
; 7. US Broaden the War
;--- a. US IMPLEMENTS Broaden the War (Tech 86)prerequisites
;------ a_1. SVN/US must build '1st Logistical Command' Wonder
;------ a_2. SVN/US must destroy 3 NLF HQ units
;------ a_3. If SVN/US fulfill a_1 & a_2 than receive Broaden the War (Tech 86)
;------ a_4. Triggers Anti-War movement (TECH 17) which obsoletes 'US Public Support' Wonder (J. S. Bach's Cathedral)
;--- b. CONSEQUENCES of US IMPLEMENTS NVN Invasion (TECH 42)
;------ b_1a. Additional US Troops(82nd Airborne, 1st Armored, 27th/69th NG, 6th Infantry, 5th Mechanized and 3x LPH ships) and Diplomatic Penalty (minus 100 gold per turn for SVN)
;------ b_1b. Switch to rules.txt files which allows cross border operations
;------ b_2. Haiphong Port Mined
;------ b_3. Chinese Intervention Activated (TECH 83)
;------ b_4. Korean units recalled to defend South Korea
;------ b_5. VC recruit extra Main Force and VC Sapper units
;--- c. CONSEQUENCES of US IMPLEMENTS CAMBODIAN Invasion (TECH 33)
;------ c_1a. Switch to rules.txt files which allows cross border operations
;------ c_1b. Triggers Khmer Rouge (TECH 93) and Diplomatic Penalty (minus 250 gold for SVN)
;------ c_2. THAI troops recalled home to protect borders
;------ c_3. Leads to MakeAgression US vs Cambodia
;------ c_4. Activates FANK army
;--- d. CONSEQUENCES of US IMPLEMENTS LAOTIAN Invasion (TECH 2)
;------ d_1. Triggers Pathet Lao (Tech 94) (see also 29. Pathet Lao) and Diplomatic Penalty (minus 350 gold for SVN)
;------ d_2. ANZAC troops recalled in protest
;------ d_3. NVA reinforcements pour into Laos gets 10x Reg, 6x Garr, 1x 120mm Art, 2x 57mm, 1x 85mm in Laos
;--- e. CONSEQUENCES of CAMBODIAN / LAOTION Invasions (TECH 2 & 33)
;------ e_1. 101st US Airborne Division recalled to States to restore order after US protests over Cambodian/Laotion invasion

; 8. US Economic Aid
; 9. 1973 Oil Embargo

; 10a. Johnson Electoral Victory
;--- a. If Johnson re-elected (TECH 40) then implement Westmoreland escalation
;--- b. Triggers Anti-War Movement
;--- c. Additional US Troops(remainder of 82nd Airborne, 27th NG, 6th Infantry, remainder of 5th Mechanized)
;--- d. General Descalation June 1970
;--- e. Johnson Victory during 2nd term or McGovern Election & Case-Church Amendment
; 10b. Nixon Electoral Victory
;--- a. US IMPLEMENTS Vietnamization (TECH 73)
;--- b. US IMPLEMENTS CAMBODIAN Coup & Incursion (TECH 47)
;------ b_1. Requires Pre-tech 1 (Tech X4) which SVN/US player may only receive if Nixon elected and FLAG 2 OFF (didn't already implement 'Cambodian Invasion' Tech)
;------ b_2. Leads to MakeAgresson Cambodia vs NVA/NLF
;------ b_3. Triggers Khmer Rouge (see 28. Khmer Rouge)
;------ b_4. Shuts down Sihanoukville
;--- c. US IMPLEMENTS LAOTIAN Operation Lam Son 719 (TECH 4)
;------ c_1. Requires Pre-tech 2 (Tech X5) which SVN/US player may only receive if Nixon elected and FLAG 3 OFF (didn't already implement 'Laotian Invasion' Tech)
;------ c_2. Triggers Pathet Lao (see 29. Pathet Lao)
;------ c_3. NVA reinforcements pour into Laos gets 12x Reg, 2x Elite, 1x Sapper, 3x Garr, 1x 122mm Art, 2x 57mm, 1x 85mm, 2x PT-76 in Laos
;------ c_4. Reward if capture Tchepone
;--- d. Cooper-Church Amendment
;--- e. Linebacker I & II
;--- f. Haiphong port mined
;--- g. Nixon Re-elected
;--- h. Paris Peace Accords
;--- i. Operation Enhance Plus
;--- j. Case-Church Amendment

; 11. US Withdrawals
;--- a. Vietnamization/De-escalation policy implemented by United States
;--- b. Westmoreland Escalation troop withdrawals
;--- c. If receive Vietnamization/De-escalation SVN may no longer recruit US divisions (4th, 9th, 23rd, 25th or 11 Arm Cav) or build military infrastructure

; 12. Allied Reinforcements
; 13. Allied Replacements
; 14. Allied Withdrawals

; 15. SVN Reinforcements & Replacements
; 16. SVN Police, RF/PF & Hamlets

; 17. Cambodian Reinforcements
;--- a. CONSEQUENCES of US CAMBODIAN Invasion (TECH 33) or CAMBODIAN Incursion (Tech 47)

; 18. NVN Flags
;--- a. CHINESE AID & Sino-Soviet Tensions (TECH 95)
; 19. NVN Industrial Zones & HCMT Trucks
; 20. NVN Reinforcements
;--- a. NVN opening deployment in South Vietnam
;--- b_1. NVN deployment of 304th, 2nd, 1st, 308th, 320th and 324th PAVN divisions
;--- b_2a. Other PAVN divisions that appear once Soviet Aid I (Tech 90) is received and SVN hasn't invaded NVN or occupied the NVA sanctuaries
;--- b_2b. Other PAVN divisions that appear if Johnson re-elected and implements Westmoreland escalation
;--- b_3. Receive NVA Elite, Sapper and 122mm Art. reinforcement if Khe Sanh unoccupied by SVN/US player prior to Vietnamization
;--- b_4. Receive NVA Regular, Sapper and 122mm Art. reinforcements as long as VC "War Zone C" Base Area tile is not occupied by SVN/US
;--- b_5. Mini Ho Chi Minh Offensive (can only occur if specific NVA sanctauries aren't controlled by SVN)
;--- c. NVA receives Chinese Aid (TECH 3) - (FLAG 0)
;--- d_1. NVA reinforcements arrive through Sihanoukville
;--- d_2. Sihanoukville NVA reinforcements rerouted to Dong Hoi if either Sihanoukville captured or SVN launches Cambodian Incusrsion
;--- e. NVA receives Soviet Aid I (TECH 90) - (FLAG 3)
;--- f. NVA receives Soviet Aid II (TECH 91) - (FLAG 4) 
;--- g. NVA receives Soviet Aid III (TECH 92)
;--- h. NVA receives Soviet Aid IV (TECH 99)
;--- i. NVA Industrial Zones Reinforcements
; 21. NVN MoveTo Commands

; 22. NLF Reinforcements & Ambush
; 23. NLF HQ Placement 
; 24. TET Offensive (1968)
;--- a. PRE-CONDITON I
;--- b. PRE-CONDITON II
;--- c. TET Offensive VC attacks 
;--- d. TET Offensive NVN attacks 
; 25. Easter Offensive (1972)
;--- a. NVN Pre-Condition for Easter Offensive (Tech 61)
;--- b. Give Soviet Aid III (Tech 92) 
;--- c. Switch rules.txt to make NVA units visible
;--- d. Add extra NVN Move to Commands
; 26. Spring Offensive (1975)
;--- a. NVN Pre-Condition for Spring Offensive (Tech 46)
;--- b. Give Soviet Aid IV (Tech 99) 
;--- c. Add extra NVN Move to Commands
; 27. Chinese Intervention
; 28. Khmer Rouge
;--- If SVN Flag 2 (Cambodian Invasion) or Flag 4 (Cambodian Incursion) ON then give Khmer Rouge (Tech 93) to NVN
; 29. Pathet Lao
;--- If SVN Flag 3 (Laotian Invasion) or Flag 5 (Operation Lam Son) ON then give Pathet Lao (Tech 94) to NVN

; 30. Civilians
; 31. SVN/US Victory Conditions for invasion of North Vietnam
; 32. Automatic NVN Victory
; 33. Negotiations

; -------------------
; 1. Initialization
; -------------------

@BEGINEVENTS
@INITFLAG
;@DEBUG

@IF
NOSCHISM
defender=ANYBODY
@THEN
@ENDIF

; ----------------------------
; 2. Introduction
; ----------------------------

;--- Americanization begins
@IF
Turn
turn=1
@THEN
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing.
^
General Thieu your nation is in the mist of a great struggle for survival. A communist insurgency, supported by the leaders in Hanoi and Beijing, has been brewing in your countryside ever since the French were defeated and Vietnam split in two. They have but one goal, to unify the two halves under the communist banner and are prepared to use any method to achieve their objective.
^
Fearing a communist takeover in South East Asia if they don't intervene, the United States are preparing to send ground troops and air assets to your aid. In addition to the American Aid Program installed in Saigon (aka the 'Smith's Trading Co.' wonder), they are also contributing an extra 100 gold per turn to your treasury.
^
Nevertheless, the American administration under President Lyndon B. Johnson is walking a tight rope as it wants to avoid any incident which might draw either China or the Soviet Union directly into the conflict and is equally eager to avoid alienating his own populace who are already weary of any participation in your conflict...
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
Your country lacks most of the facilities required to sustain a modern mechanized army on a battlefield, and as such, it is highly recommended your start to build as soon as possible the necessary infrastructure to support these units, i.e. training camps, airbases and a port facility. 
^
One training camp already exists in Pleiku, while others are under construction in Da Nang, Bien Hoa and Can Tho. The ability to build and maintain training camps will be strictly limited to these four cities. The airbases and port facility will become available once you've completed researching the 'Infrasructure' advance.
^
With the help of the American engineer units that will be deployed to Vietnam you will want to build the network of warehouses that will significantly increase your ability to support extra ARVN forces and also use these same engineers to upgrade your road network to highways to facilitate the movement of yours troops across the country...
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
As America deploys an ever increasing number of air assets to the theater, you will want to wage an air campaign against North Vietnam and Laos; in the North there are important industrial targets, whereas in Laos their are truck convoys that serve to shuttle men and war materials down the Ho Chi Minh Trail. 
^
As such, every industrial complex or HCMT Truck you destroy will help to reduce the number of NVA artillery and infantry units that are able to infiltrate South Vietnam from the NVA Sanctuaries situated along your western border.
^
The CIDG Striker units are composed of men from the local Montagnards tribes and are the only troops that can cross border tiles at th start of the war. They are great assets for locating the HCMT Supply Truck that operate in Laos.
^
The destruction of these targets is not permanent, as the North has the capacity to rebuild them after a number of months. Therefore, you will need to maintain a sustained aerial campaign to suppress North Vietnam's war making capacity...
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
Within South Vietnam proper you will need to adopt a strategy to wrestle control of the countryside from the Viet Cong, thereby reducing their ability to recruit forces from the local population. You will have two venues for achieving this objective:
^
Firstly, you will need to destroy and occupy the VC Base Area complexes situated around the country. These not only serve as recruitment areas but also as bases of operations for the local NLF forces.
^
Secondly, you will want to research the CORDS program at the first opportunity. This program will allow you to develop the following tools to fight the NLF: Pacification, Strategic Hamlets, RUFF/PUFF and Phoenix program.
^
Do not underestimate the value of the CORDS programs as they will help you, if not to fully eradicate, at least, to seriously curtail Viet Cong activity in the South.
^
In addition, you will want to reseacrh the U.S. Military Assistance Programs I and II that will allow you to purchase more modern equipement for your armed forces...
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
And finally, at some point, you may want to consider, along with your American military advisor, General William Westmoreland, broadening the war by invading Cambodia and Laos to shut down the Ho Chi Minh trail that is supplying the insurgency, or even  invading North Vietnam proper. 
^
But to convince the Johnson administration of the viability of these two options, you will need to complete some prerequisites, firstly) by building the 1st Logistical Command necessary for supporting large scale operations in the theater and secondly) by searching and destroying the Viet Cong command structure ('NLF HQ' units) in South Vietnam to place the insurgency on the defensive, and thereby secure your roads of communication for any invasion.
^
A word of caution, there are definite consequences involved in broadening the war, and as such, they should be weighed heavily before crossing that threshold. In addition, there is a time limit on your ability to broaden the war, as it will no longer be possible to do so once the next American presidential election cycle begins in November 1967.
ENDTEXT
@ENDIF

@IF
Turn
turn=1
@THEN
TEXT
New York Herald Tribune -- Marines arrive in Da Nang, March 8 1965!
^
As directed by President Johnson, three battalions of the 3rd US Marine Division today landed by sea and air in South Vietnam to guard the strategic Da Nang air base, about 80 miles from the North Vietnamese border. 
^
South Vietnamese government troops had spent the weekend flushing out Viet Cong guerrillas in the area to make the region around Da Nang as safe as possible for the 3,500-man Marine force to land. But the Marine deployment around the air base could soon lead to the first ground fighting between U.S. combat units and Communist guerrillas in Vietnam. 
^
U.S military men have been serving as advisers to South Vietnamese Army and Marine outfits in the field. But until now, there have been no American ground combat formations in South Vietnam. Spokesmen for the U.S military mission in Saigon said the Marines would remain under U.S. control, but their duties would be assigned after consultation with South Vietnamese military officers. 
ENDTEXT
@ENDIF

@IF
Turn
turn=4
@THEN
TEXT
MACV, SAIGON: Intelligence Briefing. 
^
Suspecting that North Vietnam plans on using the Khe Sanh corridor as a base of operations for invading South Vietnam's northern Quang Tri province, General Westmoreland believes the town must be occupied and held at the earliest opportunity. In his words:
^
"Khe Sanh will serve as a patrol base for blocking enemy infiltration from Laos along Route 9; as a base for SOG operations to harass the enemy in Laos and reconnaissance base for surveying the Ho Chi Minh Trail; as the western anchor for defenses south of the DMZ; and as an eventual jump-off point for ground operations to cut the Ho Chi Minh Trail"... 
ENDTEXT
@ENDIF

@IF
Turn
turn=4
@THEN
TEXT
Though General Lowell English (assistant commander 3rd Marine Division) complained that the defense of the isolated outpost is ludicrous, "When you're at Khe Sanh, you're not really anywhere", as far as Westmoreland is concerned all he needs to know is that the NVA may mass large numbers of troops in the area so that he may defeat the enemy in a set-piece battles.
^
As such, failure to hold onto to the town of Khe Sanh will serve as a base for the NVA to launch repeated attacks on the city of Quang Tri.
ENDTEXT
@ENDIF

@IF
Turn
turn=5
@THEN
TEXT
Washington, July 28 1965 (AP) - President Johnson has committed a further 50,000 US troops to the conflict in Vietnam! 
^
Monthly draft calls will increase from 17,000 to 35,000 - the highest level since the Korean War, when between 50,000 and 80,000 men were called up each month. It will take the US force in Vietnam up to 125,000 but officials say at this stage demands should be met by conscription, without calling upon the reserves.
^
Speaking in a televised address from the White House President Johnson said: "We do not want an expanding struggle with consequences no one can foresee. Nor will we bluster, bully or flaunt our power. But we will not surrender, nor will we retreat," he continued. 
^
The President gave the news conference after a week of intensive talks with senior military and security advisers in Washington. He explained the decisions were in response to requests made by General Westmoreland, the US Commander in the South Vietnamese capital, Saigon. Mr. Johnson admitted: "I do not find it easy to send the flower of our youth, our finest young men, into battle." ...
ENDTEXT
@ENDIF

@IF
Turn
turn=5
@THEN
TEXT
The US leader also made clear his desire for peace and recalled the - unsuccessful - efforts of 40 countries to bring an end to the fighting on 15 occasions. He called upon the United Nations to redouble its efforts to restore peace to Vietnam and detailed a personal letter to that effect being personally delivered to the UN Secretary-General, U Thant, in New York by the new US Ambassador to the UN, Arthur Goldberg. 
^
The Secretary of State, Dean Rusk, and the Secretary of Defense, Robert S McNamara, are to persuade Congress of the need to finance the US' new military commitments, in the light of a reduced defense budget this year. President Johnson explained: "We intend to convince the communists that we cannot be defeated by force of arms or by superior power."
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
Delay
Delay=3
TEXT
Washington Post (AP) - LBJ "I shall not seek, and I will not accept"! 
^
President Lyndon Johnson sent shockwaves through the country with his stunning announcement, added to the end of a televised speech from the White House, that he would not run for a 2nd full term as President that year.
^
The rest of the lengthy speech focused, inevitably, on Vietnam. He warned that the Communists in North Vietnam were "trying to make 1968 the year of decision in South Vietnam--the year that brings, if not final victory or defeat, at least a turning point in the struggle."  
^
He declared that these efforts would fail, but that "many men--on both sides of the struggle--will be lost. A nation that has already suffered 20 years of warfare will suffer once again. Armies on both sides will take new casualties. And the war will go on.
^
LBJ once again extended, if not an olive branch, then at least what he considered major unilateral steps toward de-escalation, including a halt of bombing raids over most (but not all) of North Vietnam.
ENDTEXT
@ENDIF

@IF
Turn
turn=28
@THEN
TEXT
Saigon Post, June 30, 1967 - Thieu becomes president in country election! 
^
The South Vietnamese Armed Forces Council resolves rival claims to the presidency in favor of Nguyen Van Thieu, Chief of State. Former Premier Nguyen Cao Ky, who had announced on May 11 that he would run for president, was forced to accept second place on the presidential ticket.
^
Thieu had been an Army officer in command of the 5th Infantry Division near Saigon when he and other senior South Vietnamese officers led a coup against President Ngo Dinh Diem. 
^
Following the coup, a series of groups jockeyed for power. In June 1965, another coup against the civilian government momentarily in power resulted in a 10-man Military National Leadership Committee, which elected Ky as premier and Thieu as Chairman and Chief of State. 
^
With these elections results, the situation has been reversed and Nguyen Van Thieu has become president of the Republic of Vietnam. 
ENDTEXT
@ENDIF

@IF
Turn
turn=55
@THEN
TEXT
Saigon Post, September 4, 1969 - Ho Chi Minh, president of North Vietnam, dies at 79 ! 
^
North Vietnam President Ho Chi Minh, 79, who led a 25-year fight against the French and the Americans in an attempt to bring all of Vietnam under Communist rule, died yesterday, the Hanoi radio reported today.
^
The broadcast monitored here, said that the Communist leader died in Hanoi "after a grave and sudden heart attack." A week of mourning for Ho was declared in North Vietnam and the Hanoi radio said he would be given a state funeral but no date was set.
^
Ho referred to as "Uncle Ho" by his people, epitomized the Communist - supported struggle for control of a socialist Vietnam. His frail face and wispy goatee became a symbol to leftists and revolutionaries throughout his country. 
^
Ho's death probably will have little, if any, immediate effect on the war in South Vietnam, although it may result in some accelerated Communist activity here. None of Ho's party colleagues have shown a tendency to compromise. They may exploit his memory to spur the Reds on to greater efforts in overrunning South Vietnam.
ENDTEXT
@ENDIF

@IF
Turn
turn=93
@AND
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@THEN
TEXT
Washington Post (AP), November 7, 1972 - Nixon re-elected president! 
^
Richard Nixon defeats Senator George McGovern (D-South Dakota) and is re-elected President of the United States. With only 55 percent of the electorate voting, the lowest turnout since 1948, Nixon carried all states but Massachusetts, taking 97 percent of the electoral votes.
^
During the campaign, Nixon pledged to secure “peace with honor” in Vietnam. Aided by the potential for a peace agreement in the ongoing Paris negotiations and the upswing in the American economy, Nixon easily defeated McGovern, an outspoken opponent of the war. 
^
McGovern had said during the campaign, “If I were President, it would take me twenty-four hours and the stroke of a pen to terminate all military operations in Southeast Asia.” 
^
To many Americans, including many Democrats, McGovern’s position was tantamount to total capitulation in Southeast Asia. 
ENDTEXT
@ENDIF

; ----------------------------------------
; 3. SVN/US Flags
; ----------------------------------------

;--- Turn SVN/US flags 21, 22 and 25 ON
;-- Turn SAIGON ** flag 21 to ON
@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=21 
@ENDIF

;-- Turn HUE ** flag 22 to ON
@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=22 
@ENDIF

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=25 
@ENDIF

@IF
TURN
turn=34
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=25 
@ENDIF

;--- Vietnamization/De-escalation policies implemented by United States (TECH 73)

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=0 
@ENDIF

;--- NVN Invasion implemented by United States (TECH 42), also activates NVN invasion Victory conditions check along with Flag 10
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=1 
@ENDIF

;--- For Flag 2 see c_1. Triggers Khmer Rouge (TECH 93) and Diplomatic Penalty (minus 250 gold for SVN)

;--- For Flag 3 see d_1. Triggers Pathet Lao (Tech 94) (see also 29. Pathet Lao) and Diplomatic Penalty (minus 350 gold for SVN)

;--- For Flag 4 see b_1. Requires Pre-tech 1 (Tech X4) which SVN/US player may only receive if Nixon elected and FLAG 2 OFF (didn't already implement 'Cambodian Invasion' Tech)

;--- For Flag 5 see c_1. Requires Pre-tech 2 (Tech X5) which SVN/US player may only receive if Nixon elected and FLAG 3 OFF (didn't already implement 'Laotian Invasion' Tech)

;--- NVN Invasion Victory flags
;--- Turn SVN/US flags 6,7,8,9 ON if SVN/US capture following NVN cities
@IF
CITYTAKEN
city=HANOI *
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=6 
@ENDIF

@IF
CITYTAKEN
city=Haiphong *
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=7 
@ENDIF

@IF
CITYTAKEN
city=Son La *
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=8 
@ENDIF

@IF
CITYTAKEN
city=Viet Tri *
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=9 
@ENDIF

;--- Turn SVN/US flags 6,7,8,9 OFF if NVN recaptures following NVN cities
@IF
CITYTAKEN
city=HANOI *
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=6 
@ENDIF

@IF
CITYTAKEN
city=Haiphong *
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=7 
@ENDIF

@IF
CITYTAKEN
city=Son La *
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=8 
@ENDIF

@IF
CITYTAKEN
city=Viet Tri *
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=9 
@ENDIF

;--- Activates NVN invasion Victory conditions check along with Flag 1
@IF
TURN
turn=44
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=10 
@ENDIF

;--- TET Offensive prevention pre-conditions
;--- Turn SVN/US flags 15,16,17,18 ON if SVN/US capture following cities
@IF
CITYTAKEN
city=Sihanoukville 
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=15 
@ENDIF

@IF
CITYTAKEN
city=PHNOM PENH **
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=16 
@ENDIF

@IF
CITYTAKEN
city=Tchepone
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=17 
@ENDIF

@IF
CITYTAKEN
city=Attapu
attacker=South Vietnam
defender=North Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=18 
@ENDIF

;--- Turn SVN/US flags 15,16,17,18 OFF if NVN recapture following cities

@IF
CITYTAKEN
city=Sihanoukville 
attacker=Anybody
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=15 
@ENDIF

@IF
CITYTAKEN
city=PHNOM PENH **
attacker=Anybody
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=16
@ENDIF

@IF
CITYTAKEN
city=Tchepone
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=17 
@ENDIF

@IF
CITYTAKEN
city=Attapu
attacker=North Vietnam
defender=South Vietnam
@THEN
Flag
Continuous
Who=South Vietnam
State=Off
Flag=18 
@ENDIF

;--- If SVN/US flags 15,16,17,18 ON then turn FLag 19 ON (see 24. TET Offensive (1968))
@IF
CheckFlag
Who=South Vietnam
Mask=0x78000
Count=4
State=On
@THEN
Flag
Continuous
Who=South Vietnam
State=On
Flag=19 
@ENDIF

; ----------------------------------------
; 4. US Reinforcements
; ----------------------------------------

;--- When research 'Infrastructure' advance (TECH 57) 
@IF
RECEIVEDTECHNOLOGY
technology=57
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: To General William Westmoreland from the U.S. Chiefs of Staff.
^
The American Congress has allocated the necessary funds in its fiscal budget for building the infrastructure necessary for conducting large scale military operations in South Vietnam. As such, you are encouraged to build the following structures at your earliest convenience:   
^
The construction of the 1st Logistical Command will not only meet one of the two prerequisites required for broadening the war, as set out by President Johnson, but in addition see the deployment of the 18th Military Police Brigade along with an extra battalion from the 18th Engineer Brigade and will increase the movement factor of your naval units by two...
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=57
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
If you haven't already done so, building the second Training Camp improvement (one already exists in Pleiku) will allow the U.S. Army to deploy the 1st Brigade of the 101st US Airborne Division.
^
Building your first Airbase improvement will allow the U.S. Air Force to deploy a squadron of F-4C Phantom fighters along with one extra squadron of F-105 Thunderchiefs.
^
Building your first Port Facility improvement will allow the U.S. Navy to deploy 2 extra MK II PBR patrol boat flotillas and increase the movement factor of your naval units by one.
ENDTEXT
@ENDIF

;--- US GROUND REINFORCEMENTS

;--- If SVN/US builds a Barracks improvement you receive 101st Airborne Division plus Brigade Supply Train

@IF
CITYPRODUCTION
builder=South Vietnam
improvement=2
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
52,74,52,74,52,74,52,74
@ENDIF

@IF
CITYPRODUCTION
builder=South Vietnam
improvement=2
@THEN
JUSTONCE
TEXT
General Thieu, thanks to the building of the second training camp installation in the country, America is able to deploy the 1st Brigade of the 101st US Airborne Division ('Screaming Eagles') in Vietnam.
ENDTEXT
CREATEUNIT
unit=101st Airborne
count=4
owner=South Vietnam
veteran=yes
homecity=101st Airb Div
locations
56,92,1
endlocations
@ENDIF

;--- Entire 173rd Airborne Bde plus Brigade Supply Train
@IF
TURN
turn=3
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
52,82,52,82,52,82,52,82
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
TEXT
General Thieu, the 173rd US Airborne Brigade ('Sky Soldiers') has arrived in Vietnam. 
^
This is the first major ground combat unit of the United States Army to be deployed by America and will serve to bring the fight to the Viet Cong and their North Vietnamese counterparts.
ENDTEXT
CREATEUNIT
unit=173rd Airborne
count=4
owner=South Vietnam
veteran=Yes
homecity=173rd Airb Bde
locations
32,128,1
endlocations
@ENDIF

;--- Remainder of 3rd Marine Division
@IF
TURN
turn=4
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
48,78,48,78,48,78,48,78
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
TEXT
General Thieu, the last regiments of the 3rd US Marine Division ('Fighting Third'), the 4th and 9th, along with the III Marine Corps HQ arrive in Vietnam.
^
In addition, the United States deploys the first battalion of the 18th Engineer Brigade, which can be used to upgrade your depots and roads to warehouses and highways, respectively.
ENDTEXT
CREATEUNIT
unit=3rd Marine
count=6
owner=South Vietnam
veteran=yes
homecity=3rd Mar Div
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=yes
homecity=III MAR HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
37,61
endlocations
@ENDIF

;--- III Marine Corps HQ plus Brigade Supply Train

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=18th Engineers
owner=South Vietnam
veteran=no
homecity=none
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=M110 175mm US
owner=South Vietnam
veteran=no
homecity=FF2 HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=UH-1 US
owner=South Vietnam
veteran=no
homecity=XXIV HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=Special Forces
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
unit=CH-47 Chinook
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
endlocations
@ENDIF

;--- If SVN/US builds a Barracks improvement you receive the 1st US Infantry Division
@IF
TURN
turn=6
@THEN
JUSTONCE
TEXT
General Thieu, America deploy it's legendary 1st Infantry Division ('Big Red One') to Vietnam.
ENDTEXT
ChangeTerrain 
map=1
terraintype=8
maprect
48,124,48,124,48,124,48,124
@ENDIF

@IF
TURN
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=1st Infantry
count=8
owner=South Vietnam
veteran=Yes
homecity=1st Inf Div
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC (1st)
count=2
owner=South Vietnam
veteran=Yes
homecity=1st Inf Div
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
18,132
endlocations
@ENDIF

;--- Initial deployment of 1st Marine Division plus Divisional Supply Train

@IF
TURN
turn=6
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
48,74,48,74,48,74,48,74
@ENDIF

@IF
TURN
turn=6
@THEN
JUSTONCE
TEXT
General Thieu, the 7th Regiment of the 1st US Marine Division ('Blue Diamond') arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=1st Marine
count=3
owner=South Vietnam
veteran=yes
homecity=1st Mar Div
locations
44,66,1
endlocations
@ENDIF

;--- Entire 1st Cavalry Division plus Divisional Supply Train

@IF
TURN
turn=7
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
48,100,48,100,48,100,48,100
@ENDIF

@IF
TURN
turn=7
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=7
@THEN
JUSTONCE
TEXT
General Thieu, the 1st US Cavalry Division ('First Team') arrives in Vietnam.
^
The divison has been built under a new military doctrine, the Airmobile concept. No longer a conventional infantry unit, the division has become an air assault division and Vietnam is to be the testing ground of this revolutionary idea. 
^
The Cavalry Division contains about 15,000 men. It has its own infantry, artillery, logistics and other division support capabilities; but most important, it has its own aviation assets assigned to the division to provide aerial reconnaissance, troop transport, aerial rocket artillery fire support and logistical transport.
^
The use of helicopters on such large scale as troop carriers, cargo lift ships, medevacs, and as aerial rocket artillery, has never before implemented, but by doing so it will free the infantry from the tyranny of terrain to attack the enemy at the time and place of its choosing.
ENDTEXT
CREATEUNIT
unit=1st Cavalry
count=9
owner=South Vietnam
veteran=no
homecity=1st Cav Div
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=7
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
56,92
56,112
endlocations
@ENDIF

;--- FIELD FORCE I HQ plus Brigade Supply Train

@IF
TURN
turn=9
@THEN
JUSTONCE
TEXT
General Thieu, the FIELD FORCE I HQ arrives in Vietnam.
^
It is the successor to Task Force Alpha, a provisional corps command created for temporary control of activities of U.S. Army ground combat units arriving in Vietnam. Field Force I is a component of U.S. Military Assistance Command Vietnam (MACV) and has its headquarters at Nha Trang.
^
It's area of responsibility is II Corps Tactical Zone, which comprise the twelve provinces of Vietnam's Central Highlands.
^
In addition, the United States deploys a second battalion of the 18th Engineer Brigade.
ENDTEXT
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=M110 175mm US
owner=South Vietnam
veteran=no
homecity=FF2 HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=18th Engineers
owner=South Vietnam
veteran=no
homecity=none
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=UH-1 US
owner=South Vietnam
veteran=no
homecity=XXIV HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=Special Forces
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=CIDG Striker
owner=South Vietnam
veteran=no
homecity=none
locations
56,92
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=CH-47 Chinook
owner=South Vietnam
veteran=no
homecity=none
locations
56,92
endlocations
@ENDIF

;--- US Naval leaders establish River Patrol Force (Task Force 116)

@IF
TURN
turn=10
@THEN
JUSTONCE
TEXT
General Thieu, U.S. naval leaders have determined that allied forces should command the waterways of South Vietnam and therefore establish the River Patrol Force (Task Force 116).
^
The MK II PBR's can be used to great effect in the Mekong Delta region, in particular, for ferrying troops to some of your beleaguered outposts or assaulting enemy troops along it's waterways.
^
As such, your patrol boats can move not only from one ocean tile to another but also along the river tiles themselves.
ENDTEXT
CREATEUNIT
unit=MK II PBR
owner=South Vietnam
veteran=no
homecity=none
locations
24,128
18,132
endlocations
@ENDIF

;--- Add motor Pool for DIV ART HQ to support upcoming 
@IF
TURN
turn=11
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=7
maprect
48,88,48,88,48,88,48,88
@ENDIF

;--- Entire 25th Infantry Division plus Divisional Supply Train deployed if research Tech 12

@IF
TURN
turn=12
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
48,132,48,132,48,132,48,132
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
TEXT
General Thieu, the 25th US Infantry Division ('Tropic Lightning') arrives in Vietnam. 
^
The division's OOB includes 3 mechanized (M113 APC) and one armored (M-48 Patton) battalion.
ENDTEXT
CREATEUNIT
unit=25th Infantry
count=6
owner=South Vietnam
veteran=no
homecity=25th Inf Div
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC (25th)
count=3
owner=South Vietnam
veteran=no
homecity=25th Inf Div
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
54,116
endlocations
@ENDIF

;--- Remainder of 1st Marine Division (1st and 5th Rgt)

@IF
TURN
turn=13
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
48,74,48,74,48,74,48,74
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=yes
homecity=III MAR HQ
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
TEXT
General Thieu, the remainder of the 1st US Marine Division, the 1st and 5th regiments, arrive in Vietnam.
ENDTEXT
CREATEUNIT
unit=1st Marine
count=6
owner=South Vietnam
veteran=Yes
homecity=1st Mar Div
locations
44,66,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
50,76
endlocations
@ENDIF

;--- FIELD FORCE II HQ plus Brigade Supply Train

@IF
TURN
turn=13
@THEN
JUSTONCE
TEXT
General Thieu, the FIELD FORCE II HQ arrives in Vietnam.
^
Activated on 15 March 1966, the HQ will become the largest corps command in Vietnam and one of the largest in Army history. The HQ unit is a component of U.S. Military Assistance Command Vietnam (MACV) and had its headquarters in Long Binh.
^
II Field Force's area of responsibility is III Corps Tactical Zone, which comprise the eleven provinces surrounding Saigon. This was designed to mimic the ARVN III Corps region.
^
In addition, the United States deploys another battalion of the 18th Engineer Brigade.
ENDTEXT
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=M110 175mm US
owner=South Vietnam
veteran=no
homecity=FF2 HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=18th Engineers
owner=South Vietnam
veteran=no
homecity=none
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=UH-1 US
owner=South Vietnam
veteran=no
homecity=XXIV HQ
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=CIDG Striker
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
endlocations
@ENDIF

@IF
TURN
turn=13
@THEN
JUSTONCE
CREATEUNIT
unit=CH-47 Chinook
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
endlocations
@ENDIF

;--- Additional PBR's are sent to augment the River Patrol Force (Task Force 116)

@IF
TURN
turn=13
@THEN
JUSTONCE
TEXT
General Thieu, additional PBR boats are sent by the U.S. Navy to augment the Riverine Patrol Force.
ENDTEXT
CREATEUNIT
unit=MK II PBR
owner=South Vietnam
veteran=no
homecity=none
locations
24,128
18,132
endlocations
@ENDIF

;--- The 26th Marine Brigade plus Brigade Supply Train

@IF
TURN
turn=18
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
48,82,48,82,48,82,48,82
@ENDIF

@IF
TURN
turn=18
@THEN
JUSTONCE
TEXT
General Thieu, the 26th US Marine Brigade ('The Professionals') arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=26th Marines
count=4
owner=South Vietnam
veteran=no
homecity=26th Mar Bde
locations
44,66,1
endlocations
@ENDIF

;--- The 199th Infantry Brigade plus Brigade Supply Train

@IF
TURN
turn=22
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
48,136,48,136,48,136,48,136
@ENDIF

@IF
TURN
turn=22
@THEN
JUSTONCE
TEXT
General Thieu, the 199th US Infantry Brigade ('The Redcatchers') arrives in Vietnam
ENDTEXT
CREATEUNIT
unit=199th Infantry
count=4
owner=South Vietnam
veteran=no
homecity=199th Inf Bde
locations
32,128,1
endlocations
@ENDIF

;--- Remainder of 101st Airborne Division plus Brigade Supply Train

@IF
TURN
turn=34
@AND
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
52,74,52,74,52,74,52,74
@ENDIF

@IF
TURN
turn=34
@AND
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=yes
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=34
@AND
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@THEN
JUSTONCE
TEXT
President Thieu, the 2nd and 3rd brigades of the 101st US Airborne Division arrive in Vietnam.
^
Bolstered by the 1st Calvary's successful implementation of the new Airmobile military doctrine, the American army has decided to reorganize and redesignate the 101st as an airmobile division. 
^
As such, the division's 1st Brigade battalions, which are already in country, should also be upgraded to airmobile units but only if they are defeated on the battlefield. Otherwise, they will continue to operate as airborne units. 
ENDTEXT
CREATEUNIT
unit=101st Airmobile
count=6
owner=South Vietnam
veteran=yes
homecity=101st Airb Div
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=34
@AND
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
56,92
56,112
endlocations
@ENDIF

;--- The 3rd Brigade of the 82nd Airborne Division plus Brigade Supply Train

@IF
TURN
turn=36
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
52,78,52,78,52,78,52,78
@ENDIF

@IF
TURN
turn=36
@THEN
JUSTONCE
TEXT
President Thieu, the 3rd brigade of the 82nd US Airborne Division ('All American') arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=82nd Airborne
count=3
owner=South Vietnam
veteran=yes
homecity=82nd Airb Div
locations
56,92,1
endlocations
@ENDIF

;--- The 1st Brigade of the 5th Mechanized Division plus Brigade Supply Train

@IF
TURN
turn=41
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
48,108,48,108,48,108,48,108
@ENDIF

@IF
TURN
turn=41
@THEN
JUSTONCE
TEXT
President Thieu, the 1st Brigade of the 5th US Mechanized Division ('Red Diamond') arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=5th Infantry
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=41
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC (5th)
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=41
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
56,112,1
endlocations
@ENDIF

;--- XXIV Corps HQ plus Brigade Supply Train

@IF
TURN
turn=42
@THEN
JUSTONCE
TEXT
President Thieu, the XXIV Corps HQ arrives in Vietnam.
^
The XXIV Corps is placed under the operational control of the III Marine Expeditionary Force and will be responsible for the activities of U.S. Army ground combat units deployed in northern South Vietnam and has its headquarters at Phu Bai.
ENDTEXT
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=42
@THEN
JUSTONCE
CREATEUNIT
unit=M110 175mm US
owner=South Vietnam
veteran=no
homecity=FF2 HQ
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=42
@THEN
JUSTONCE
CREATEUNIT
unit=UH-1 US
owner=South Vietnam
veteran=no
homecity=XXIV HQ
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=42
@THEN
JUSTONCE
CREATEUNIT
unit=AH-1 Cobra
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=42
@THEN
JUSTONCE
CREATEUNIT
unit=Special Forces
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=42
@THEN
JUSTONCE
CREATEUNIT
unit=CH-47 Chinook
owner=South Vietnam
veteran=no
homecity=none
locations
56,108
endlocations
@ENDIF

;--- If SVN/US builds a Port Facility improvement you receive the Naval Bases advance (Tech 59)which gives naval units an extra movement point
@IF
CITYPRODUCTION
builder=South Vietnam
improvement=34
@THEN
JUSTONCE
TEXT
The addition of a Port Facility will greatly improve the capability of the River Patrol Force to operate within the Vietnamese waterways!
^
All naval units, including the MK II PBR's, movement allowance is increased by one point. 
^
An additional 2 PBR boats squadrons are sent by the U.S. Navy to augment the Riverine Patrol Force (this is a one time event, i.e. you will NOT receive extra PBR boats if you build additional Port Facilities).
ENDTEXT
CREATEUNIT
unit=MK II PBR
count=2
owner=South Vietnam
veteran=no
homecity=None
locations
32,128
18,132
endlocations
GiveTechnology		
receiver=South Vietnam
technology=59
@ENDIF

;--- For every 2 VC Local unit killed by SVN/US kills, after researched CORDS (Tech 19), receive a Tunnel Rats unit
@IF
UNITKILLED
unit=VC Local
attacker=South Vietnam
defender=North Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@THEN
CREATEUNIT
unit=Tunnel Rats
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
18,132
38,0
38,0
38,0
endlocations
@ENDIF

@IF
UNITKILLED
unit=VC Base Area
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
A major NLF base area has been located and it's corresponding political/military complex destroyed.
ENDTEXT
PLAYWAVEFILE
Largexpl.wav
@ENDIF 

;--- US AIR REINFORCEMENTS
;--- 7th US Airforce

;--- If SVN/US builds an Airbase improvement you receive 2 F-4C Phantom and 1 F-105 Thunderchief squadrons
@IF
CITYPRODUCTION
builder=South Vietnam
improvement=32
@THEN
JUSTONCE
TEXT
The creation of your first airbase will provide key repair facilities in country and thereby greatly increase the operational capability of your airforce in Vietnam!
^
As such, MACV recommends that you build at least two airbase improvements in country to provide repair facilities to cover northern and southern South Vietnam .
^
In addition, to take advantage of this extra basing capacity the US Airforce deploys an extra F-4C Phantom fighter and one F-105 Thunderchief bomber squadron to Vietnam (this is a one time event, i.e. you will NOT receive extra aircraft if you build additional airbases).
ENDTEXT
CREATEUNIT
unit=F-4C Phantom
owner=South Vietnam
veteran=no
homecity=12th Fght Wing
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

@IF
CITYPRODUCTION
builder=South Vietnam
improvement=32
@THEN
JUSTONCE
CREATEUNIT
unit=F-105 Thunderchief
owner=South Vietnam
veteran=no
homecity=355th TAC Wing
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

;--- US Air Force initiates Operation Rolling Thunder 
@IF
TURN
turn=3
@THEN
JUSTONCE
TEXT
As part of operation Rolling Thunder, the US Air Force assigns two new squadrons of B-52 Stratofortress bombers to augment the 4133th Bomber wing.
^
Operation Rolling Thunder was the title of a gradual and sustained aerial bombardment campaign conducted by the US 2nd Air Division (later Seventh Air Force), US Navy, and Republic of Vietnam Air Force (VNAF) against the Democratic Republic of Vietnam (North Vietnam) from 2 March 1965 until 2 November 1968, during the Vietnam War.
^
The four objectives of the operation (which evolved over time) were to boost the sagging morale of the Saigon regime in the Republic of Vietnam, to persuade North Vietnam to cease its support for the communist insurgency in South Vietnam without actually taking any ground forces into communist North Vietnam, to destroy North Vietnam's transportation system, industrial base, and air defenses, and to halt the flow of men and material into South Vietnam. 
^
Attainment of these objectives was made difficult by both the restraints imposed upon the U.S. and its allies, by Cold War exigencies and by the military aid and assistance received by North Vietnam from its communist allies, the Soviet Union and the People's Republic of China (PRC).
ENDTEXT
CREATEUNIT
unit=B-52 Stratofortress
count=2
owner=South Vietnam
veteran=no
homecity=Guam AFB
locations
59,33,2
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
TEXT
General Thieu, a squadron of A-1 Skyraider attack aircraft arrives in Vietnam to augment the 7th US Airforce.
ENDTEXT
CREATEUNIT
unit=A-1 Skyraider
owner=South Vietnam
veteran=no
homecity=315th Cdo Wing 
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
TEXT
General Thieu, a squadron of B-57 Canberra bombers arrives in Laos to augment the 7th US Airforce.
ENDTEXT
CREATEUNIT
unit=B-57 Canberra
owner=South Vietnam
veteran=no
homecity=none 
RANDOMIZE
locations
6,52,2
endlocations
@ENDIF


;--- US Air Force initiates Operation Steel Tiger
@IF
TURN
turn=9
@THEN
JUSTONCE
TEXT
As part of operation Steel Tiger, the US Air Force assigns a new squadron of B-52 Stratofortress bombers to augment the 4133th Bomber wing.
^
Operation Steel Tiger was a covert U.S. 2nd Air Division, later Seventh Air Force and U.S. Navy Task Force 77 aerial interdiction effort targeted against the infiltration of People's Army of Vietnam (PAVN) men and material moving south from the Democratic Republic of Vietnam (DRV or North Vietnam) through southeastern Laos to support their military effort in the Republic of Vietnam (RVN or South Vietnam) during the Vietnam War.
^
The operation was initiated by the 2nd Air Division on 3 April 1965, continued under the direction of the Seventh Air Force when that headquarters was created on 1 April 1966, and was concluded on 11 November 1968 with the initiation of Operation Commando Hunt.
ENDTEXT
CREATEUNIT
unit=B-52 Stratofortress
owner=South Vietnam
veteran=no
homecity=Guam AFB
locations
59,33,2
endlocations
@ENDIF

@IF
TURN
turn=15
@THEN
JUSTONCE
TEXT
General Thieu, a squadron of F-105 Thunderchief fighter-bombers arrives in Vietnam to augment the 7th US Airforce
ENDTEXT
CREATEUNIT
unit=F-105 Thunderchief
owner=South Vietnam
veteran=no
homecity=355th TAC Wing 
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

@IF
TURN
turn=25
@THEN
JUSTONCE
TEXT
General Thieu, a squadron of F-105 Thunderchief fighter-bombers arrives in Vietnam to augment the 7th US Airforce
ENDTEXT
CREATEUNIT
unit=F-105 Thunderchief
owner=South Vietnam
veteran=no
homecity=355th TAC Wing 
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

@IF
TURN
turn=26
@THEN
JUSTONCE
TEXT
General Thieu, a squadron of F-4C Phantom fighters arrives in Vietnam to augment the 7th US Airforce
ENDTEXT
CREATEUNIT
unit=F-4C Phantom
owner=South Vietnam
veteran=no
homecity=12th Fght Wing 
RANDOMIZE
locations
44,66
56,108
30,120
endlocations
@ENDIF

;--- US Air Force initiates Operation Commando Hunt
@IF
TURN
turn=46
@THEN
JUSTONCE
TEXT
As part of operation Commando Hunt, the US Air Force assigns a new squadron of B-52 Stratofortress bombers to augment the 4133th Bomber wing.
^
Operation Commando Hunt was a covert U.S. Seventh Air Force and U.S. Navy Task Force 77 aerial interdiction campaign that took place during the Vietnam War (and the successor to operation Steel Tiger). The operation began on 11 November 1968 and ended on 29 March 1972. 
^
The objective of the campaign was to prevent the transit of the People's Army of Vietnam (PAVN) personnel and supplies on the logistical corridor known as the Ho Chi Minh Trail (the Truong Son Road to the North Vietnamese).
ENDTEXT
CREATEUNIT
unit=B-52 Stratofortress
owner=South Vietnam
veteran=no
homecity=Guam AFB
locations
6,52,2
endlocations
@ENDIF

;--- US Navy sends recommissioned BB-62 to Vietnam on September 1967 (Turn 31) 

@IF
TURN
turn=31
@THEN
JUSTONCE
TEXT
President Thieu, the newly recommissioned veteran World War Two battleship, the USS New Jersey (BB-62), arrives off the coast of Vietnam to begin her one year tour in the South East Asian theatre. 
^
Her mission is to raid installations along the North Vietnamese coastline and provide naval gunfire support to the troops.
^
At the end of her one year tour, you will be prompted to disband the battleship along with any unused naval shells.
ENDTEXT
CREATEUNIT
unit=USS New Jersey
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
56,112
endlocations
@ENDIF

@IF
TURN
turn=31
@THEN
JUSTONCE
CREATEUNIT
unit=Naval Shell
count=6
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
56,112
endlocations
@ENDIF

@IF
TURN
turn=35
@THEN
JUSTONCE
TEXT
A new stock of naval shells arrives in Vietnam to replenish the USS New Jersey's depleted ammunition stores.
ENDTEXT
CREATEUNIT
unit=Naval Shell
count=6
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
56,112
endlocations
@ENDIF

@IF
TURN
turn=39
@THEN
JUSTONCE
TEXT
A final stock of naval shells arrives in Vietnam to replenish the USS New Jersey's depleted ammunition stores.
ENDTEXT
CREATEUNIT
unit=Naval Shell
count=6
owner=South Vietnam
veteran=no
homecity=none
locations
44,66
56,112
endlocations
@ENDIF

@IF
TURN
turn=43
@THEN
JUSTONCE
TEXT
The USS New Jersey has completed her mission and is being recalled to the United States to be decommissioned, according to the Secretary of Defense, for reasons of economy.
^
During the battleship's tour of duty the New Jersey fired 5,688 rounds of 16 inch shells, and 14,891 rounds of 5-inch shells.
^
As such, you should disband the New Jersey at the end of the turn along with any remaining naval shells that haven't been used (you may NOT disband the units inside a South Vietnamese city in order to try and benefit from the production boost).
ENDTEXT
@ENDIF

; ----------------------------------------
; 5. US Free Technologies and Tech Reinforcements
; ----------------------------------------

;--- a. Free Technologies (SVN/US is granted free 'YEAR' technologies which opens the research path)
@IF
TURN
turn=11
@THEN
JUSTONCE
TEXT
It's January 1966, the year of the Goat in the Vietnamese zodiac.
^
The new year opens the path for the SVN/US player to research the 4th Infantry Division and 11th Armored Cavalry Regiment advances in the tech tree.
^
Always conscious that it must strike a balance in its prosecution of the war to avoid antagonizing the anti-war movement at home, the American administration must be prepared to pay a political and economic cost for increasing the U.S. commitment in South Vietnam.
^
As such, recruiting (i.e. "researching") the 4th or 11th will cost your treasury 630 and 400 gold pieces, respectively.  
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=26
@ENDIF

@IF
TURN
turn=23
@THEN
JUSTONCE
TEXT
It's January 1967, the year of the Goat in the Vietnamese zodiac.
^
The new year opens the path for the SVN/US player to research the Attack Helicopter, Battle Group II, 9th Infantry Division and 23rd Infantry Division advances in the tech tree.
^
Always conscious that it must strike a balance in its prosecution of the war to avoid antagonizing the anti-war movement at home the American administration must be prepared to pay a political and economic cost for increasing the U.S. commitment in South Vietnam.
^
As such, recruiting (i.e. "researching") the Battle Group II, the 9th or 23rd divisions will cost your treasury 600, 540 and 520 gold pieces, respectively. 
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=23
@ENDIF

;--- Remove the 'US 1964 Election' TECH (52)
@IF
TURN
turn=33
@THEN
JUSTONCE
TEXT
Washington Post, November 1967, Washington DC - The 1968 American presidential election cycle goes into full gear.
^
If the Johnson administration hasn't already given the green light to do so, it is no longer possible to expand the ground war by invading Cambodia, Laos or North Vietnam.
ENDTEXT
TakeTechnology		
whom=South Vietnam
technology=52
@ENDIF

@IF
TURN
turn=35
@THEN
JUSTONCE
TEXT
It's January 1968, the year of the Monkey in the Vietnamese zodiac.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=44
@ENDIF

@IF
TURN
turn=59
@THEN
JUSTONCE
TEXT
It's January 1970, the year of the Dog in the Vietnamese zodiac.
^
The new year opens the path for the SVN/US player to research the Cambodian Incursion advance in the tech tree (provided you haven't already activated the Cambodia Invasion tech).
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=12
@ENDIF

@IF
TURN
turn=71
@THEN
JUSTONCE
TEXT
It's January 1971, the year of the Pig in the Vietnamese zodiac. 
^
The new year opens the path for the SVN/US player to research the Strike Aircraft and Operation Lam Son (provided you haven't already activated the Laotian Invasion tech) advances in the tech tree.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=45
@ENDIF

@IF
TURN
turn=83
@THEN
JUSTONCE
TEXT
It's January 1972, the year of the Rat in the Vietnamese zodiac. 
^
The new year opens the path for the SVN/US player to research the Laser Guided Munition advance in the tech tree.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=58
@ENDIF

;--- b. Free Tech Reinforcements (SVN/US receive free reinforcements upon discovery of specific techs or event driven)

;--- Air Force units

;--- SVN receives Strike Aircraft (TECH 30)
@IF
RECEIVEDTECHNOLOGY
technology=30
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
President Thieu, the 7th US Airforce begins to deploy elements of the 388th Tactical Wing. The 388th is equipped with the F-4E Phantom attack aircraft which delivers a much deadlier bomb load and is seen as a replacement for the aging fleet of F-105 fighter-bombers.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=24
CREATEUNIT
unit=F-4E Phantom
owner=South Vietnam
veteran=no
homecity=388th TAC wing
RANDOMIZE 
locations
44,66
30,120
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=30
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=3
TEXT
President Thieu, the 7th US Airforce deploys a second squadron of F-4E Phantom aircraft of the 388th Tactical Wing to Vietnam.
ENDTEXT
CREATEUNIT
unit=F-4E Phantom
owner=South Vietnam
veteran=no
homecity=388th TAC wing
RANDOMIZE 
locations
44,66
30,120
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=30
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=5
TEXT
President Thieu, the 7th US Arforce deploys a final squadron of F-4E Phantom aircraft of the 388th Tactical Wing to Vietnam.
ENDTEXT
CREATEUNIT
unit=F-4E Phantom
owner=South Vietnam
veteran=no
homecity=388th TAC wing
RANDOMIZE 
locations
44,66
30,120
endlocations
@ENDIF

;--- SVN receives Laser Guided Munition (TECH 32)
@IF
RECEIVEDTECHNOLOGY
technology=32
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
President Thieu, the 7th US Arforce deploys the 474th Tactical Wing which possesses the more advanced F-111 Aardvark attack aircraft capable of carrying a bomb load of 31,000 pounds.
ENDTEXT
CREATEUNIT
unit=F-111 Aardvark
count=2
owner=South Vietnam
veteran=no
homecity=474th TAC Wing
locations
6,52,2
endlocations
@ENDIF

;--- SVN receives Attack Helicopter (TECH 87)
@IF
RECEIVEDTECHNOLOGY
technology=87
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The US Army deploys 3 battalions of Bell AH-1 Cobra's to Vietnam. 
^
The helicpoter is a two-blade, single engine attack helicopter manufactured by Bell Helicopter. It was developed using the engine, transmission and rotor system of the Bell's UH-1 Iroquois.
^
AH-1 Cobras were in use by the Army during the Tet offensive in 1968 and through to the end of the Vietnam War. Cobras provided fire support for ground forces, escorted transport helicopters and other roles, including aerial rocket artillery (ARA) battalions in the two Airmobile divisions. They also formed "hunter killer" teams by pairing with OH-6A scout helicopters.
ENDTEXT
CREATEUNIT
unit=AH-1 Cobra
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=87
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=AH-1 Cobra
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
56,92,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=87
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=AH-1 Cobra
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
54,116,1
endlocations
@ENDIF

;--- Naval and Naval Air units
;--- SVN receives Battle Group II (TECH 48)

@IF
RECEIVEDTECHNOLOGY
technology=48
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
General Thieu, the US Navy sends a second carrier battle group to augment the Seventh Fleet operating off the coast of Vietnam.
^
Important, it is strictly forbidden to re-home any of your carrier battlegroups to any South Vietnamese city. Each CVN Battlegroup must remain homed to it's associated TF USN city. 
^
In addition, each carrier should never carry more than 4 naval air units. This is important to remember because once America starts to recall each of its carrier battlegroups, any air unit based on a carrier will be eliminated. 
ENDTEXT
CREATEUNIT
unit=CVN Battlegroup
owner=South Vietnam
veteran=no
homecity=TF2 USN
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=48
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=A-6 Intruder
count=2
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=48
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=A-4 Skyhawk
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=48
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=F-4B Phantom
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

;--- c. Tech Reinforcements with gold cost (SVN/US receive reinforcements upon discovery of specific techs)

;--- U.S. Army
;--- Entire 4th Infantry Division plus Divisional Supply Train deployed if research Tech 72
; Subtract 630 Gold from Treasury 

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
48,104,48,104,48,104,48,104
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
54,116,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
54,116,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
General Thieu, the 4th US Infantry Division ('Ivy Division') arrives in Vietnam. The division's OOB includes 2 mechanized (M113 APC) and one armored (M-48 Patton) battalion.
^
The United States expends political and economic capital to expand it's armed forces in South East Asia; as a consequence 630 Gold will be subtracted from the South Vietnamese treasury.
ENDTEXT
CREATEUNIT
unit=4th Infantry
count=7
owner=South Vietnam
veteran=no
homecity=4th Inf Div
locations
54,116,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC (4th)
count=2
owner=South Vietnam
veteran=no
homecity=4th Inf Div
locations
54,116,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
54,116
32,128
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-210
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-210
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=72
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
CHANGEMONEY
receiver=South Vietnam
amount=-210
@ENDIF

;--- The 11th Armored Cavalry regiment plus Brigade Supply Train deployed if research Tech 81
; Subtract 400 Gold from Treasury

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
48,140,48,140,48,140,48,140
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=South Vietnam
@THEN
JUSTONCE
President Thieu, the 11th US Armored Cavalry regiment ('Blackhorse Regiment') arrives in Vietnam.
^
The 11th US Armored Cavalry regiment, which is commanded by Colonel George S. Patton IV - the son of World War II General Patton, is the first unit to use the M-551 Sheridan light tank in Vietnam.
^
Both the main combat units of the 11th Cavalry, the M113 ACAV and M-551 Sheridan are fast and able to launch 2 attacks per turn, making this regiment a highly mobile and potent force.
^
The United States expends political and economic capital to expand it's armed forces in South East Asia; as a consequence 400 Gold will be subtracted from the South Vietnamese treasury.
CREATEUNIT
unit=M113 ACAV
count=2
owner=South Vietnam
veteran=no
homecity=11th Arm Cav
locations
32,128,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M-551 Sheridan
count=2
owner=South Vietnam
veteran=no
homecity=11th Arm Cav
locations
32,128,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=South Vietnam
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-200
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-200
@ENDIF

;--- Entire 9th Infantry Division plus Divisional Supply Train deployed if research Tech 49
; Subtract 540 Gold from Treasury 

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
48,128,48,128,48,128,48,128
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
18,132,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
President Thieu, the 9th US Infantry Division ('Old Reliables') arrives in Vietnam.
^
The division's soldiers will come to refer to the florid octofoil shoulder patch design on their uniform as Flower Power, or the Psychedelic Cookie.
^
The United States expends political and economic capital to expand it's armed forces in South East Asia; as a consequence 540 Gold will be subtracted from the South Vietnamese treasury.
ENDTEXT
CREATEUNIT
unit=9th Infantry
count=9
owner=South Vietnam
veteran=no
homecity=9th Inf Div
locations
18,132,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
18,132
32,128
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=MK II PBR
owner=South Vietnam
veteran=no
homecity=none
locations
24,128
18,132
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Special Forces
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
32,128,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-180
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-180
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=49
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-180
@ENDIF

;--- The 23rd Infantry Division plus Divisional Supply Train deployed if research Tech 79
; Subtract 520 Gold from Treasury

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
48,112,48,112,48,112,48,112
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,108,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
President Thieu, the 23rd US Infantry Division ('Americal') arrives in Vietnam.
^
The United States expends political and economic capital to expand it's armed forces in South East Asia; as a consequence 520 Gold will be subtracted from the South Vietnamese treasury.
ENDTEXT
CREATEUNIT
unit=23rd Infantry
count=11
owner=South Vietnam
veteran=no
homecity=23rd Inf Div
locations
56,108,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
locations
56,108
56,92
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-260
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=79
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-260
@ENDIF

;--- SVN receives Battle Group III (TECH 64); then set NVN FLAG 22 to ON which reduces VC Main Force recruitment
;--- US Navy

; Subtract 600 Gold from Treasury
@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=22
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
President Thieu, the US Navy sends a third carrier battle group to augment the Seventh Fleet operating off the coast of Vietnam.
^
Up till this time, North Vietnamese trawlers had been successfully infiltrating South Vietnam's waterways and resupplying NLF forces along it's eastern coast.
^
The increased American naval presence will now serve to definitely interdict this supply route; as such, moving forward, the NLF will be recruiting one less VC Main Force unit per turn.
^
The United States expends political and economic capital to expand it's armed forces in South East Asia; as a consequence 600 Gold will be subtracted from the South Vietnamese treasury.
^
Important, it is strictly forbidden to re-home any of your carrier battlegroups to any South Vietnamese city. Each CVN Battlegroup must remain homed to it's associated TF USN city on the Order of Battle map. 
ENDTEXT
CREATEUNIT
unit=CVN Battlegroup
owner=South Vietnam
veteran=no
homecity=TF3 USN
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=A-6 Intruder
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=A-7 Corsair
count=2
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=F-4B Phantom
owner=South Vietnam
veteran=no
homecity=none
locations
58,60
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-200
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=1
CHANGEMONEY
receiver=South Vietnam
amount=-200
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=64
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
CHANGEMONEY
receiver=South Vietnam
amount=-200
@ENDIF

; ----------------------------------------
; 6. US Replacements
; ----------------------------------------

;--- GROUND FORCES
;--- If lost Engineers get replaced as long as ARVN 65 tech is activated, which gets deactivated with Vietnamization
@IF
UNITKILLED
unit=18th Engineers
attacker=Anybody
defender=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam
@THEN
TEXT
18th Engineers Replacement
ENDTEXT
CREATEUNIT
unit=18th Engineers
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
50,58,1
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-40
@ENDIF

@IF
UNITKILLED
unit=18th MP
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=18th MP
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
20,124,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

;--- CIDG Striker (SVN starts the game with 5 battalions, one in each Corps plus Da Nang. Program cancelled December 1970)
@IF
UNITKILLED
unit=CIDG Striker
attacker=Anybody
defender=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam
@THEN
Delay
delay=3
TEXT
CIDG Striker Replacement
ENDTEXT
CREATEUNIT
unit=CIDG Striker
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
37,61
42,88
30,120
endlocations
@ENDIF

@IF
UNITKILLED
unit=Special Forces
attacker=Anybody
defender=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF 
@THEN
Delay
delay=3
TEXT
Special Forces Replacement
ENDTEXT
CREATEUNIT
unit=Special Forces
owner=South Vietnam
veteran=no
homecity=MACV HQ
RANDOMIZE
locations
32,128,1
56,112,1
56,92,1
44,66,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=1st Marine
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=1st Marine
owner=South Vietnam
veteran=no
homecity=1st Mar Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=3rd Marine
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=3rd Marine
owner=South Vietnam
veteran=no
homecity=3rd Mar Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=1st Cavalry
attacker=Anybody
defender=South Vietnam
@THEN
Delay
Delay=3
CREATEUNIT
unit=1st Cavalry
owner=South Vietnam
veteran=no
homecity=1st Cav Div
locations
56,92,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=1st Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=1st Infantry
owner=South Vietnam
veteran=no
homecity=1st Inf Div
locations
32,136,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=4th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=4th Infantry
owner=South Vietnam
veteran=no
homecity=4th Inf Div
locations
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=5th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=5th Infantry
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=6th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=6th Infantry
owner=South Vietnam
veteran=no
homecity=6th Inf Div
locations
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=9th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=9th Infantry
owner=South Vietnam
veteran=no
homecity=9th Inf Div
locations
32,136,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=23rd Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=23rd Infantry
owner=South Vietnam
veteran=no
homecity=23rd Inf Div
locations
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=25th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=25th Infantry
owner=South Vietnam
veteran=no
homecity=25th Inf Div
locations
32,136,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=82nd Airborne
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=82nd Airborne
owner=South Vietnam
veteran=no
homecity=82nd Airb Div
locations
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

;--- If 101st Airborne infantry battalion killed prior to turn 34 replace it with 101st Airborne unit, otherwise afterwards replace it with 101st Airmobile unit
@IF 
UNITKILLED
unit=101st Airborne
attacker=Anybody
defender=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=25	
State=ON 
@THEN
CREATEUNIT
unit=101st Airborne
owner=South Vietnam
veteran=no
homecity=101st Airb Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=101st Airborne
attacker=Anybody
defender=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=25	
State=OFF 
@THEN
Delay
Delay=3
CREATEUNIT
unit=101st Airmobile
owner=South Vietnam
veteran=no
homecity=101st Airb Div
locations
56,92,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=101st Airmobile
attacker=Anybody
defender=South Vietnam
@THEN
Delay
Delay=3
CREATEUNIT
unit=101st Airmobile
owner=South Vietnam
veteran=no
homecity=101st Airb Div
locations
56,92,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=173rd Airborne
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=173rd Airborne
owner=South Vietnam
veteran=no
homecity=173rd Airb Bde
locations
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=27th Natl Guard
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=27th Natl Guard
owner=South Vietnam
veteran=no
homecity=27th NG Bde
locations
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=199th Infantry
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=199th Infantry
owner=South Vietnam
veteran=no
homecity=199th Inf Bde
locations
32,136,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-10
@ENDIF

@IF
UNITKILLED
unit=26th Marines
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=26th Marines
owner=South Vietnam
veteran=no
homecity=26th Mar Bde
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M113 APC (1st)
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 APC (1st)
owner=South Vietnam
veteran=no
homecity=1st Inf Div
locations
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M113 APC (4th)
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 APC (4th)
owner=South Vietnam
veteran=no
homecity=4th Inf Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M113 APC (5th)
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 APC (5th)
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M113 APC (25th)
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 APC (25th)
owner=South Vietnam
veteran=no
homecity=25th Inf Div
locations
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M-48 Patton
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
50,56,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=M113 ACAV
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 ACAV
owner=South Vietnam
veteran=no
homecity=11th Arm Cav
locations
32,138,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M-551 Sheridan
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M-551 Sheridan
owner=South Vietnam
veteran=no
homecity=11th Arm Cav
locations
32,140,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M113 APC OI
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M113 APC OI
owner=South Vietnam
veteran=no
homecity=1st Arm Div
locations
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=M-48 Patton OI
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M-48 Patton OI
owner=South Vietnam
veteran=no
homecity=1st Arm Div
RANDOMIZE
locations
32,140,1
50,56,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=M109 155mm OI
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=M109 155mm OI
owner=South Vietnam
veteran=no
homecity=1st Arm Div
locations
50,56,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=UH-1 US
attacker=Anybody
defender=South Vietnam
@THEN
Delay
delay=4
CREATEUNIT
unit=UH-1 US
owner=South Vietnam
veteran=no
homecity=XXIV HQ
RANDOMIZE
locations
32,128,1
56,112,1
56,92,1
44,66,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=AH-1 Cobra
attacker=Anybody
defender=South Vietnam
@THEN
Delay
delay=4
CREATEUNIT
unit=AH-1 Cobra
owner=South Vietnam
veteran=no
homecity=MACV HQ
RANDOMIZE
locations
32,128,1
56,112,1
56,92,1
44,66,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

;--- 105mm Art. US units must be homed to US divisional HQ's
@IF
UNITKILLED
unit=105mm Art. US
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
RANDOMIZE
locations
32,136,1
50,60,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=155mm Art. US
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
155mm Art. US Replacement
ENDTEXT
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
RANDOMIZE
locations
32,138,1
50,58,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=M110 175mm US
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
M110 175mm US Replacement
ENDTEXT
CREATEUNIT
unit=M110 175mm US
owner=South Vietnam
veteran=no
homecity=FF2 HQ
RANDOMIZE
locations
32,140,1
50,56,1
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-40
@ENDIF

@IF
UNITKILLED
unit=Firebase
attacker=Anybody
defender=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF 
@THEN
CREATEUNIT
unit=Firebase
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
44,66
56,92
56,112
32,128
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=CH-47 Chinook
attacker=Anybody
defender=South Vietnam
@THEN
Delay
delay=4
CREATEUNIT
unit=CH-47 Chinook
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
44,66
56,92
56,112
32,128
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=MK II PBR
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=MK II PBR
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
18,132
24,128
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

;--- AIR FORCE

@IF
UNITKILLED
unit=A-1 Skyraider
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new A-1 Skyraider squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=A-1 Skyraider
owner=South Vietnam
veteran=no
homecity=315th Cdo Wing
locations
54,142,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=F-100 Sabre
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-100 Sabre squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-100 Sabre
owner=South Vietnam
veteran=no
homecity=3rd Fght Wing
locations
54,144,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=F-105 Thunderchief
attacker=Anybody
defender=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=24	
State=OFF
@THEN
TEXT
A new F-105 Thunderchief squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-105 Thunderchief
owner=South Vietnam
veteran=no
homecity=355th TAC Wing
locations
54,144,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=F-4C Phantom
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-4C Phantom squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-4C Phantom
owner=South Vietnam
veteran=no
homecity=12th Fght Wing
locations
54,144,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=F-4E Phantom
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-4E Phantom squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-4E Phantom
owner=South Vietnam
veteran=no
homecity=388th TAC wing
locations
54,146,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

;--- Replace B-57 Canberra's only up till Vietnamization
@IF
UNITKILLED
unit=B-57 Canberra
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A B-57 Canberra squadron is lost in combat. Given the hostile environment and the advanced age of the Airforce's B-57 fleet the brass decide not to send a new squadron to replace the lost one. 
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=B-52 Stratofortress
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new B-52 Stratofortress squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=B-52 Stratofortress
owner=South Vietnam
veteran=no
homecity=Guam AFB
locations
54,148,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-50
@ENDIF

@IF
UNITKILLED
unit=F-111 Aardvark
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-111 Aardvark squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-111 Aardvark
owner=South Vietnam
veteran=no
homecity=474th TAC Wing
locations
54,146,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-40
@ENDIF

;--- NAVAL AIR

@IF
UNITKILLED
unit=A-4 Skyhawk
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new A-4 Skyhawk naval air squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=A-4 Skyhawk
owner=South Vietnam
veteran=no
homecity=none
locations
63,53,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

@IF
UNITKILLED
unit=F-4B Phantom
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-4B Phantom naval air squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-4B Phantom
owner=South Vietnam
veteran=no
homecity=none
locations
63,51,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=A-6 Intruder
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new A-6 Intruder naval air squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=A-6 Intruder
owner=South Vietnam
veteran=no
homecity=none
locations
63,49,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=A-7 Corsair
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new A-7 Corsair naval air squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=A-7 Corsair
owner=South Vietnam
veteran=no
homecity=none
locations
63,49,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-30
@ENDIF

@IF
UNITKILLED
unit=F-8 Crusader
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
A new F-8 Crusader naval air squadron arrives in Vietnam to replace previous combat losses. 
ENDTEXT
CREATEUNIT
unit=F-8 Crusader
owner=South Vietnam
veteran=no
homecity=none
locations
63,51,2
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

; ----------------------------------------
; 7. US Broaden the War
; ----------------------------------------

;--- a. US IMPLEMENTS Broaden the War (Tech 86) prerequisites

;------ a_1. SVN/US must build '1st Logistical Command' Wonder
@IF
CITYPRODUCTION
builder=South Vietnam
improvement=52
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
The United States has completed the First Logistical Command essential for supporting the growing American expeditionary force being deployed in Vietnam, also fulfilling one of the two preliminary requirements for broadening the war in South East Asia (the other being the eradiction of four NLF HQs).
^
In addition, to ensure the protection of the newly built portuary infrastructures the United Sates deploys the 18th Military Police Brigade to Vietnam along with an extra battalion of the 18th Engineer Brigade. 
^
All naval units, including the MK II PBR's, movement allowance is increased by two points. 
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=11 
@ENDIF

;--- Add Motor pool to MACV HQ to support upcoming 18th MP 
@IF
CITYPRODUCTION
builder=South Vietnam
improvement=52
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=7
maprect
28,122,28,122,28,122,28,122
@ENDIF

@IF
CITYPRODUCTION
builder=South Vietnam
improvement=52
@THEN
JUSTONCE
CREATEUNIT
unit=18th MP
count=7
owner=South Vietnam
veteran=no
homecity=MACV HQ
locations
28,124,1
endlocations
@ENDIF

@IF
CITYPRODUCTION
builder=South Vietnam
improvement=52
@THEN
JUSTONCE
CREATEUNIT
unit=18th Engineers
owner=South Vietnam
veteran=no
homecity=none
locations
44,66,1
endlocations
@ENDIF

;------ a_2. SVN/US must destroy 4 NLF HQ units
@IF
UNITKILLED
unit=NLF HQ
attacker=South Vietnam
defender=North Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
General Westmoreland, US and ARVN troops have located and destroyed the 1st NLF HQ!
^
If three more NLF command posts are eliminated your forces will have accomplished one of the two prerequisites set out by President Johnson for broadening the war, should you so choose.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=12 ; 
@ENDIF

@IF
UNITKILLED
unit=NLF HQ
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=12	; 
State=On
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
General Westmoreland, US and ARVN troops have located and destroyed the 2nd NLF HQ!
^
If two more NLF command post are eliminated your forces will have accomplished one of the two prerequisites set out by President Johnson for broadening the war, should you so choose.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=13 ; 
@ENDIF

@IF
UNITKILLED
unit=NLF HQ
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=13	; 
State=On
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
General Westmoreland, US and ARVN troops have located and destroyed the 3rd NLF HQ!
^
If one more NLF command post is eliminated your forces will have accomplished one of the two prerequisites set out by President Johnson for broadening the war, should you so choose.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=14 ; 
@ENDIF

@IF
UNITKILLED
unit=NLF HQ
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=14	; 
State=On
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
General Westmoreland, US and ARVN troops have located and destroyed the 4th NLF HQ!
^
With the eradication of the fourth NLF HQ the South Vietnamese and American forces have completed one of the two preliminary requirements set out by the White House for broadening the war in the South East Asian theather of operations (the other being the completion of 1st Logistical Command wonder).
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=28 ;
@ENDIF

;------ a_3. If SVN/US fulfill a_1 & a_2 than receive Broaden the War (Tech 86) which opens up the tech tree for Techs 2, 33 and 42 
;--- Check if US has fulfilled a_1 and a_2 conditions and NVN hasn't received the Offensive & Uprising advance (TECH 51 - NVN Flag 16)  
@IF
CheckFlag
Who=South Vietnam
Mask=0x10000800
Count=2
State=On
@AND
CheckFlag
Who=North Vietnam
Flag=16	 
State=Off
@THEN
JUSTONCE
TEXT
MACV, SAIGON: INTELLIGENCE BRIEFING!
^
Having fulfilled both preliminary requirements set out by the Johnson Administration, completed the 1st Logistical Command and eradicated four NLF HQs, MACV and the ARVN Chiefs of Staff in South Vietnam get the approval to make preparations for expanding the war.
^
As such, you receive the 'Broaden the War' advance which opens the path to the following technologies: the 'NVN Invasion', the 'Cambodian Invasion' and the 'Laotian Invasion' (note: you must research the 'Cambodian Invasion' before you can have access to the 'Laotian Invasion). 
^
You must research each of these individual advances first before being able to carry out operations in each of these countries (as there are clear advantages and disadvantages set out in the event file when each of these techs are discovered).
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=86
@ENDIF

;------ a_4. Triggers Anti-War movement (TECH 17) which obsoletes 'US Public Support' Wonder (J. S. Bach's Cathedral)
@IF
RECEIVEDTECHNOLOGY
technology=86
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
Washington Post, DC -- Johnson administration to broaden war!
^
Having chosen to broaden the war only adds fuel to the fire on the American home front and serves to augment the growing resistance to the conflict. Many student associations across the nation occupy campuses and hold anti-war protests.
^
In many respects, the student antiwar movement reflects growing disillusionment among young Americans about politics and society as a whole. Influenced by the writers of the rebellious Beat Generation of the 1950s, young people in the United States express frustration about racism, gender issues, consumerism, and authority in general... 
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=17
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=86
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
In an attempt to stem the growing protest movements, President Johnson authorizes the CIA to investigate prominent antiwar activists, which angers many U.S. citizens angers and only worsens public discontentment about the war.
^
As a consequence, the 'US Public Support' wonder (J.S. Bach's Cathedral), which makes two unhappy citizens become content in every city, becomes obsolete.
ENDTEXT
@ENDIF

;--- b. CONSEQUENCES of US IMPLEMENTS NVN Invasion (Tech 42)
;------ b_1a. Additional US Troops(82nd Airborne, 1st Armored, 27th/69th NG, 6th Infantry, 5th Mechanized and 3x LPH ships) and Diplomatic Penalty (minus 100 gold per turn for SVN)
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
The Johnson administration, in a major policy shift, decides to escalate the war to bring the conflict to a swift end and therefore approves the American Joint Chief of Staff recommendation to invade North Vietnam.
^
As such, preparations are made to ship the following units over the next 3 months to Vietnam: the 82nd Airborne Division, 1st Armored Division, 27th and 69th National Guard brigade, 6th Infantry Division and 5th Mechanized Division along with an Amphibious Task Group.
^
The United States will incur a heavy diplomatic backlash from both it's allies and adversaries for expanding the conflict and risking a much wider conflict with the People's Republic of China...
ENDTEXT
CREATEUNIT
unit=Full OPS
owner=PR of China
veteran=no
homecity=none
locations
8,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
You have committed yourself to this enterprise and there is no going back. As such, to secure a victory, you MUST capture and hold on to the following cities by the end of October 1968: Hanoi *, Haiphong *, Son La * and Viet Tri *.
^
In addition, during this time you must not only hold on to all cities which you controlled at the beginning of the invasion but any city you capture during the invasion. 
^
Failure to meet your objectives by the prescribed date will result in your loss and a North Vietnamese victory.
ENDTEXT
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,9
9,9
9,11
endlocations
@ENDIF

;------ b_1b. Switch to rules.txt files which allows cross border operations
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Text
IMPORTANT MACV COMMUNIQUE: FILE CHANGE
^
The combined MACV and ARVN Chiefs of Staff send out orders to their Corps commanders to prepare their forces to invade North Vietnam.
^
The American and South Vietnamese elite and mechanized forces (1st ARVN, Airborne, M113 ARVN and M-41 Bulldog) will now be able to enter and cross border tiles.
^
Save the game, Exit ToT, and run the "Nam65.bat" file. Select option 2, "SVN/US Invasions - Incursions". 
^
NOTE: There is no need to re-run the bat file if you were previously prompted to run it for the Cambodian Invasion.
EndText
@ENDIF

;--- Subtract 100 from South Vietnamese treasury every turn after research NVN Invasion to reflect worldwide diplomatic backlash
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@AND
TurnInterval
interval=1 
@THEN
JUSTONCE
CHANGEMONEY
receiver=South Vietnam
amount=-100
@ENDIF  

;--- Open Supply Column Route on OOB Map for Escalation units
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=5
maprect
52,124,52,124,52,124,52,124
@ENDIF

;--- Remainder of 82nd Airborne Division ('All American') plus Division Supply Train
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
52,78,52,78,52,78,52,78
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of the North Vietnamese invasion effort, the 1st and 2nd Brigades of the 82nd Airborne Division, 'All American', arrive in Vietnam. 
ENDTEXT
CREATEUNIT
unit=82nd Airborne
Count=6
owner=South Vietnam
veteran=no
homecity=82nd Airb Div
locations
56,92,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

;--- Entire 1st Armored Division ('Old Ironsides') plus Division Supply Train
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
ChangeTerrain
map=1
terraintype=8
maprect
56,124,56,124,56,124,56,124
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
TEXT
As part of the North Vietnamese invasion effort, the 1st US Armored Division, 'Old Ironsides', arrives in Vietnam. 
ENDTEXT
CREATEUNIT
unit=M113 APC OI
Count=4
owner=South Vietnam
veteran=yes
homecity=1st Arm Div
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M-48 Patton OI
Count=4
owner=South Vietnam
veteran=yes
homecity=1st Arm Div
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M109 155mm OI
owner=South Vietnam
veteran=yes
homecity=1st Arm Div
locations
44,66,1
endlocations
@ENDIF

;--- Entire 6th Infantry Division ('Sightseeing Sixth') plus Division Supply Train

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=3
ChangeTerrain
map=1
terraintype=8
maprect
56,128,56,128,56,128,56,128
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=3
TEXT
As part of the North Vietnamese invasion effort, the 6th Infantry Division, 'Sightseeing Sixth', arrives in Vietnam. 
ENDTEXT
CREATEUNIT
unit=6th Infantry
count=9
owner=South Vietnam
veteran=no
homecity=6th Inf Div
locations
56,92,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=3
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

;--- Remainder of 5th Mechanized Division ('Red Diamond') plus Division Supply Train

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
ChangeTerrain
map=1
terraintype=8
maprect
48,108,48,108,48,108,48,108
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
TEXT
As part of the North Vietnamese invasion effort, the 2nd and 3rd Brigades of the 5th Mechanized Division, 'Red Diamond', arrive in Vietnam. 
ENDTEXT
CREATEUNIT
unit=5th Infantry
Count=3
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
CREATEUNIT
unit=M113 APC (5th)
Count=3
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
44,66,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
44,66,1
endlocations
@ENDIF

;--- The 27th and 69th National Guard Infantry Brigade plus Brigade Supply Train

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=5
ChangeTerrain
map=1
terraintype=9
maprect
56,132,56,132,56,132,56,132
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=5
TEXT
As part of the North Vietnamese invasion effort, the 27th and 69th National Guard Infantry Brigades arrive in Vietnam.
ENDTEXT
CREATEUNIT
unit=27th Natl Guard
count=6
owner=South Vietnam
veteran=no
homecity=27th NG Bde
locations
54,116,1
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=LPH
count=3
owner=South Vietnam
veteran=no
homecity=None
locations
44,66
56,112
endlocations
@ENDIF

;------ b_2. Haiphong Port Mined

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
As part of the invasion plan, president Johnson orders the US Seventh Fleet to mine the North Vietnamese ports, in particular Haiphong harbour which serves as the primary debarkation point for all Soviet arms shipments to the country.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=78
@ENDIF

;------ b_3. Chinese Intervention Activated
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
TEXT
IMPORTANT CIA COMMUNIQUE: INTELLIGENCE BRIEFING!
^
The Soviet Secret Services having caught wind of the American deployment orders advises its Chinese counterparts of the American invasion plan. 
^
Mao Zedong, true to his commitment to the North Vietnamese leaders, orders units of the People's Volunteer Army (PVA), an adjunct of the People's Liberation Army (PLA), to cross the border into northern Vietnam to assist its revolutionary partner in the defense of their homeland. 
ENDTEXT
GiveTechnology		
receiver=North Vietnam
technology=83
@ENDIF

;------ b_4. Korean units recalled to defend South Korea
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=3
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
To counter the American invasion of North Vietnam, Chinese forces begin to mass along the North Korean border. 
^
In anticipation of a possible invasion President Syngman Rhee of South Korea will recall his troops from Vietnam to bolster his country's defenses over the next 2 months, starting with the Capitol Infantry Division this month.
^
As such, the Korean 9th and Capitol infantry divisions along with the 2nd Marine Brigade leave Vietnam.  
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,92,28,92,28,92,28,92
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
TEXT
In accordance with President Syngman Rhee's orders the Korean 9th Infantry division leaves Vietnam.  
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,96,28,96,28,96,28,96
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=5
TEXT
In accordance with President Syngman Rhee's orders the final Korean unit, the 2nd Marine Brigade, leaves Vietnam.  
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,100,28,100,28,100,28,100
@ENDIF

;------ b_5. VC recruit extra Main Force and VC Sapper units
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,113
17,123
27,117
36,118
46,86
39,91
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,113
17,123
27,117
36,118
46,86
39,91
endlocations
@ENDIF

;--- c. CONSEQUENCES of US IMPLEMENTS CAMBODIAN Invasion (Tech 33)

;------ c_1a. Switch to rules.txt files which allows cross border operations
@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
JUSTONCE
Text
IMPORTANT MACV COMMUNIQUE: FILE CHANGE
^
The combined MACV and ARVN Chiefs of Staff send out orders to their Corps commanders to prepare their forces to invade Cambodia.
^
The American and South Vietnamese elite and mechanized forces (1st ARVN, Airborne, M113 ARVN and M-41 Bulldog) will now be able to enter and cross border tiles.
^
Save the game, Exit ToT, and run the "Nam65.bat" file. Select option 2, "SVN/US Invasions - Incursions". 
^
NOTE: There is no need to re-run the bat file if you were previously prompted to run it for the NVN Invasion.
EndText
@ENDIF
;------ c_1b. Triggers Khmer Rouge (Tech 93) (see also 28. Khmer Rouge) and Diplomatic Penalty (minus 250 gold for SVN)

@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Full OPS
owner=PR of China
veteran=no
homecity=none
locations
14,104
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
13,103
15,103
15,105
endlocations
@ENDIF 

@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=2
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
General Westmoreland, the United States and its South Vietnamese ally have transgressed the Geneva Agreement of 1954 which guaranteed Cambodia's neutrality. This action brings about world wide condemnation.
^
On the other hand, American and ARVN ground troops under your command are now able to enter Cambodia. Occupying the Cambodian NVA sanctuaries from tile (23,111) upward will prevent the North Vietnamese from generating troops in those locations.
^
Furthermore if you are able to capture the city of Sihanoukville you will permanently shut down the Sihanouk trail (i.e. no further NVA troops will be generated along the NVA sanctuaries located between tiles (4,126) and (7,113)).
^
Finally, if you capture the Cambodian cities of Phnom Penh and Lumphat you will have accomplished the first half of the objective of preventing the TET Offensive (the other half being the capture of the Laotian cities of Attapu and Tchepone). 
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=-250
@ENDIF

;------ c_2. THAI troops recalled home to protect borders (see 14. Allied Withdrawals)

;------ c_3. Leads to MakeAgression US vs Cambodia
@IF
CheckFlag
Who=South Vietnam
Flag=2	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=South Vietnam
whom=Cambodia
@ENDIF

@IF
CheckFlag
Who=South Vietnam
Flag=2	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Cambodia
whom=South Vietnam
@ENDIF

;--- Hate South Vietnam
@IF
CheckFlag
Who=South Vietnam
Flag=2	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
ModifyReputation
Who=South Vietnam
whom=Cambodia
modifier=100
@ENDIF

;------ c_4. Activates FANK army (see also 17. Cambodian Reinforcements)
@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
TEXT
IMPORTANT CIA COMMUNIQUE: INTELLIGENCE BRIEFING!
^
In response to American aggression Prince Sihanouk mobilizes the Cambodian army (FANK) vowing to resist the foreign invader.
^
In addition, the Khmer Rouge who had been a minor faction in the country prior to the invasion, begin a recruitment program to fight the invaders.
ENDTEXT
GiveTechnology		
receiver=Cambodia
technology=29
CHANGEMONEY
receiver=South Vietnam
amount=-250
@ENDIF

;--- d. CONSEQUENCES of US IMPLEMENTS LAOTIAN Invasion (Tech 2)
;------ d_1. Triggers Pathet Lao (Tech 94) (see also 29. Pathet Lao) and Diplomatic Penalty (minus 350 gold for SVN)
@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Full OPS
owner=PR of China
veteran=no
homecity=none
locations
17,83
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
Randomize
locations
16,82
16,84
endlocations
@ENDIF 

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=3 
TEXT
IMPORTANT CIA COMMUNIQUE: INTELLIGENCE BRIEFING!
^
General Westmoreland, the United States and its South Vietnamese ally have transgressed the Geneva Agreement of 1954 which guaranteed Laos's neutrality. This action brings about world wide condemnation.
^
On the other hand, American and ARVN ground troops under your command are now able to enter Laos. Occupying the Laotian 'NVA Sanctuary' tiles will prevent the North Vietnamese from generating troops in those locations.
^
Finally, if you capture the Laotian cities of Attapu and Tchepone, prior to North Vietnam implementing the 'General Offensive and Uprising' advance, you will have completed the objective of preventing the TET Offensive.
^
Prince Souphanouvong, the ostensible leader of the Pathet Lao begins a recruitment campaign among the Laotian peasantry to fight the invaders.
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=-350
@ENDIF 

;------ d_2. ANZAC troops recalled in protest (see 14. Allied Withdrawals)

;------ d_3. NVA reinforcements pour into Laos gets 10x Reg, 6x Garr, 1x 120mm Art, 2x 57mm, 1x 85mm in Laos
@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=10
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Garrison
count=6
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF    

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF 

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=85mm AA
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

;--- e. CONSEQUENCES of CAMBODIAN / LAOTION Invasions (TECH 2 & 33)
;------ e_1. 101st US Airborne Division recalled to States to restore order after US protests over Cambodian/Laotion invasion
@IF
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=On
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
The 101st US Airborne Division is recalled to the United States to assist National Guard units restore order to American cities after violent protests break out due to America's invasion of neutral Cambodia and Laos.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
54,74,54,74,54,74,54,74
@ENDIF

; ----------------------------------------
; 8. US Economic Aid
; ----------------------------------------

;--- Base US Economic Aid Package to SVN starting in 1965
@IF
RANDOMTURN
denominator=1
@THEN
CHANGEMONEY
receiver=South Vietnam
amount=100
@ENDIF

;--- Additional US Economic Aid Package to SVN starting 1967 (once receive '1967' TECH(23))
@IF
RECEIVEDTECHNOLOGY
technology=23
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing!
^
General Thieu, the U.S. Congress agrees to increase it's economic aid package to South Vietnam (i.e. your nation receives an extra 50 gold per turn for a total of 150 gold per turn).
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=50
@ENDIF

;--- Additional US Economic Aid Package to SVN starting 1968 (once receive '1968' TECH(44))
@IF
RECEIVEDTECHNOLOGY
technology=44
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing!
^
President Thieu, the U.S. Congress agrees to increase it's economic aid package to South Vietnam (i.e. your nation receives an extra 50 gold per turn for a total of 200 gold per turn).
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=50
@ENDIF

;--- Additional US Economic Aid Package to SVN starting 1969 (if received 'Nixon Elected' TECH )
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing!
^
President Thieu, the Nixon administration gets the U.S. Congress to increase the economic aid package to South Vietnam (i.e. your nation receives an extra 100 gold per turn for a total of 300 gold per turn).
ENDTEXT
CHANGEMONEY
receiver=South Vietnam
amount=100
@ENDIF

;--- US cuts off aid if receive 'Case-Church Bill' TECH(35)
@IF
RECEIVEDTECHNOLOGY
technology=35
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CHANGEMONEY
receiver=South Vietnam
amount=-100
@ENDIF

; ----------------------------------------
; 9. 1973 Oil Embargo strikes SVN economy
; ----------------------------------------

;--- When January 1974 give 1973 Oil Embargo (Tech 14) which obsoletes SVN Economy wonder (Doubles effectiveness of temples) 
@IF
Turn
turn=107
@THEN
TEXT
OIL EMBARGO UNDERMINES SOUTH VIETNAMESE ECONOMY!
^
The oil crisis began in October 1973 when the members of the Organization of Arab Petroleum Exporting Countries, in response to the American involvement in the 1973 Yom Kippur War, proclaimed an oil embargo. 
^
The impact of the Middle East oil embargo only serves to further weaken the southern Vietnamese economy, which is already realing from the withdrawal of US forces and the large American contruction firms.
^
For the first time, President Thieu you begin to lose the support of some of the South's most vocal anti-communists. A war weary South Vietnamese population is becoming ever more uncertain about the future.
^
The SVN Economy wonder, which doubles the effectiveness of your newspapers (aka temples), becomes obsolete.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=14
@ENDIF

;--- and subtract 50 gold per turn from SVN for the remainder of the game
@IF
RECEIVEDTECHNOLOGY
technology=14
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CHANGEMONEY
receiver=South Vietnam
amount=-50
@ENDIF

; ----------------------------------------
; 10a. Johnson Electoral Victory
; ----------------------------------------

;--- SVN/US prevented TET offensive thereby leading to Johnson re-election in November 1968 (turn 46)
;--- Check if turn 46 (December 1968) and if NVN received US Escalated War advance (Tech 74) meaning SVN/US either invaded NVN or Cambodia/Laos thereby preventing the TET offensive
@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=74
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
Washington, November 4, 1968 (AP) -- Lyndon Johnson wins re-election bid!
^
President Johnson has been re-elected for a second full term, handily defeating his republican opponent Richard Nixon.
^
It's believed his Great Society programs and successful prosecution of the Vietnam War to date are what led the American electorate to grant the President another 4 year mandate.
^
Nevertheless, all is not well, as the war in South East Asia is causing growing resentment in the country, and the administration needs to bring it to a successful conclusion, otherwise, the mood of the nation may turn against the President.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=40
@ENDIF

;------ a. If Johnson re-elected (TECH 40) then implement Westmoreland escalation
@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
President Johnson has accepted a request from General Westmoreland for an additional 206,000 American troops for Vietnam to bring ultimate victory against the Viet Cong and North Vietnamese. This will bring the total of service men and women serving in country to over 700,000.
^
As such, the remaining brigades of the 82nd Airborne and 5th Mechanized divisions along with the 6th Infantry Division and the 27th National Guard brigade will be deployed to Vietnam over the course of the next two months.
^
By doing so, the President has pledged to protect the South Vietnamese people from any further incursion into their country. Failure to live up to that commitment will have dire consequences for the future of this country, as there are already many voices in America who wish to withdraw from the conflict...
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As such, YOU MUST PREVENT THE CAPTURE OF ANY CITY currently under your control until the end of your mandate in November 1972. If you succeed the North will have no choice but to concede failure and sign a peace accord at the Paris talks, thereby securing the South's political future.
^
In actuality, Westmoreland made the request as the TET offensive was ongoing in order "to regain the initiative from the Viet Cong and North Vietnamese". The request was ultimately rejected by the President as many of his cabinet argued that the increase in the number of troops would only bring a corresponding increase by North Vietnam thereby raising the level of violence without giving the allies the upper hand.
^
US troop numbers peaked in January 1969 with President Johnson approving an increased maximum number of US troops in Vietnam at 549,500.
ENDTEXT
@ENDIF

;------ b. Triggers Anti-War Movement
@IF
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
Washington Post, DC -- Johnson administration to escalate war!
^
Having chosen to escalate the war by committing more U.S. combat troops to Vietnam has delitorious effects on the American home front, as many citizens are growing increasingly weary of the country's involvement in the conflict. Many student associations across the nation occupy campuses and hold anti-war protests.
^
In many respects, the student antiwar movement reflects growing disillusionment among young Americans about politics and society as a whole. Influenced by the writers of the rebellious Beat Generation of the 1950s, young people in the United States express frustration about racism, gender issues, consumerism, and authority in general... 
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=17
@ENDIF

@IF
CheckFlag
Who=South Vietnam
Mask=0x6
Count=2
State=Off
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
In an attempt to stem the growing protest movements, President Johnson authorizes the CIA to investigate prominent antiwar activists, which angers many U.S. citizens and only worsens public discontentment about the war.
^
As a consequence, the 'US Public Support' wonder, which makes one content person become happy in every city, becomes obsolete.  
ENDTEXT
@ENDIF

;------ c. Additional US Troops(remainder of 82nd Airborne, 27th NG, 6th Infantry, remainder of 5th Mechanized)
;--- 1st and 2nd brigades of the 82nd Airborne Division plus Division Supply Train
@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
52,78,52,78,52,78,52,78
@ENDIF

@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of Westmoreland request, the 1st and 2nd brigades of the 82nd Airborne Division arrive in Vietnam.
ENDTEXT
CREATEUNIT
unit=82nd Airborne
count=6
owner=South Vietnam
veteran=no
homecity=82nd Airb Div
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

;--- Open Supply Column Route on OOB Map for Westmoreland Escalation units
@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=5
maprect
52,124,52,124,52,124,52,124
@ENDIF

;--- 27th National Guard Brigade plus Brigade Supply Train
@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=9
maprect
56,132,56,132,56,132,56,132
@ENDIF

@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of Westmoreland's escalation request, the 27th National Guard Brigade arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=27th Natl Guard
count=3
owner=South Vietnam
veteran=no
homecity=27th NG Bde
locations
32,128,1
endlocations
@ENDIF

;--- Entire 6th Infantry Division ('Sightseeing Sixth') plus Division Supply Train

@IF
TURN
turn=47
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
56,128,56,128,56,128,56,128
@ENDIF

@IF
TURN
turn=47
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of Westmoreland's escalation request, the 6th Infantry Division arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=6th Infantry
count=9
owner=South Vietnam
veteran=no
homecity=6th Inf Div
locations
56,92,1
endlocations
@ENDIF

@IF
TURN
turn=47
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. US
owner=South Vietnam
veteran=no
homecity=DIV. ART. HQ
locations
56,92,1
endlocations
@ENDIF

;--- Remainder of 5th Mechanized Division ('Red Diamond') plus Division Supply Train
@IF
TURN
turn=48
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
ChangeTerrain
map=1
terraintype=8
maprect
48,108,48,108,48,108,48,108
@ENDIF

@IF
TURN
turn=48
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of Westmoreland's escalation request, the 2nd and 3rd Brigades of the 5th Mechanized Division, 'Red Diamond', arrive in Vietnam. 
ENDTEXT
CREATEUNIT
unit=5th Infantry
Count=3
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=48
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC (5th)
Count=3
owner=South Vietnam
veteran=no
homecity=5th Mech Div
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=48
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
owner=South Vietnam
veteran=no
homecity=III MAR HQ
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=48
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=155mm Art. US
owner=South Vietnam
veteran=no
homecity=FF1 HQ
locations
56,112,1
endlocations
@ENDIF

;------ d. General Descalation June 1970
@IF
TURN
turn=64
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
In response to growing pressure at home, President Johnson has ordered his administration to begin implementing a de-escalation policy to end the five year U.S. involvement in Vietnam. 
^
As such, moving forward, American combat troops will be progressively withdrawn, over the next couple of years, from the Vietnamese theater, while certain programs will be instituted to re-equip the ARVN infantry divisions with modern weapons. 
^
In addition, the South Vietnamese government will increase the draft of eligible men. Therefore the four South Vietnamese Corps cities will now be recruiting the newly equiped 'ARVN Inf 69' units and in greater numbers than their predecessor the 'ARVN Inf 65' units.
^
Finally, as the United States prepares to gradually witdraw from the conflict, American companies which have profited from many lucrative defense contracts prepare to do the same and, as such, the South Vietnamese Ministry of Trade becomes obsolete.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=73
@ENDIF

;------ e. Johnson Victory during 2nd term or McGovern Election & Case-Church Amendment
;--- If ANY city controlled by South Vietnam is captured during Johnson's 2nd term set Flag 23 to ON
@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
CITYTAKEN
city=AnyCity
attacker=North Vietnam
defender=South Vietnam
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing!
^
Despite massive investments in war materials and human lives the government of President Thieu and it's American ally have failed on their promise to protect the South Vietnamese population by allowing one of it's cities to be captured by communist forces. 
^
As a result, growing discontent in America is pushing the Democratic party towards disengagement. Senator George McGovern, the leading candidate in the next presidential election, vows to quickly end the United States involvement in the conflict if elected.
^
The future of South Vietnam is looking grim.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=23
@ENDIF

;--- If turn 93 (November 1972 - US Election) and Flag 23 OFF, then NVN signs peace accord with SVN
@IF
TURN
turn=93
@AND
CheckFlag
Who=South Vietnam
Flag=23	
State=Off
@THEN
JUSTONCE
TEXT
The Saigon Post -- North Vietnam and NLF sign peace accord!
^
North Vietnam and its southern National Liberation Front allies have been unable to breach the South Vietnamese defensive perimeter. After years of fruitless efforts to overthrow the South Vietnamese government moderates in the Lao Dong Party take charge and oust it's more militant members from all the Northern state's government apparatus. 
^
The new leaders agree to sign a binding peace accord, as per the wishes of it's primary sponsor the Soviet Union, and resolve to concentrate on rebuilding North Vietnam after years of devastating American bombing raids. 
^
THE WAR IS OVER! SOUTH VIETNAM WINS THE PEACE AND IT'S FUTURE IS SECURED!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

;--- If turn 93 (November 1972 - US Election) and Flag 23 ON, then McGovern Elected and war goes on
@IF
TURN
turn=93
@AND
CheckFlag
Who=South Vietnam
Flag=23	
State=ON 
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing!
^
After years of fighting, the South Vietnamese government of President Thieu and the Johnson administration's policies have failed to bear positive results as the war appears to have no end in sight. 
^
As such, the American public tired of the endless quagmire have elected Senator George McGovern in a landslide in the November election. The newly elected President has promised to bring about a quick end to America's involvement in the conflict.
^
As a consequence, the Military Assistance Command Vietnam (MACV) and the American Aid Program in South Vietnam are disbanded (though the economic aid package and Military Assistance Programs which allows the nation to buy US equipement will continue). The few remaining American troops will be witdrawn as scheduled.
^
It's appears going forward that South Vietnam will have to carry the burden of the war alone.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=35 ; Case-Church Amendment (Tech 35)
@ENDIF

; ----------------------------------------
; 10b. Nixon Electoral Victory
; ----------------------------------------

;--- SVN/US unable to prevent TET offensive thereby leading to Nixon election in November 1968 (turn 46)
;--- Check if turn 46 (December 1968) and if NVN received TET Offensive advance (Tech 6) meaning SVN/US failed to prevent TET offensive
@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
Washington Post, November 6, 1968 -- Nixon wins close contest for president!
^
After a day when the United States appeared to be on the brink of a constitutional crisis, Richard Nixon has finally emerged as the country's next president, winning the election over the Democratic nominee, incumbent Vice President Hubert Humphrey.
^
The election year was tumultuous; it was marked by the assassination of civil rights leader Martin Luther King, Jr., subsequent race riots across the nation, the assassination of Democratic presidential candidate Robert F. Kennedy and widespread opposition to the Vietnam War across university campuses.
^
The President elect has campaigned to bring peace with honour to Vietnam and therefore he called for a new era of negotiation with communist nations.
ENDTEXT
CREATEUNIT
unit=No OPS
owner=PR of China
veteran=no
homecity=none
locations
8,10
endlocations
GiveTechnology		
receiver=South Vietnam
technology=41
@ENDIF

@IF
TURN
turn=46
@AND
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
Nixon orders the Joint Chief of Staff to honour out going President Johnson's order, made at the beginning of November, to halt the Rolling Thunder bombing campaign; as such the "No OPS" flag is now activated in North Vietnam. 
^
Henceforth it is strictly forbidden for the SVN/US player to carry out any airstrikes, be it from the U.S. Navy or Air Force, in any tile located within North Vietnam.
^
The Navy orders it's theater commanders to redirect their efforts against targets in Laos, as part of Operation Commando Hunt, and South Vietnam.
^
In addition, the President orders the Foreign Aid package increased to help South Vietnam purchase U.S. military equipment through the Military Assistance Programs.
ENDTEXT
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
locations
7,9
9,9
9,11
endlocations
@ENDIF 

;--- a. US IMPLEMENTS Vietnamization (TECH 73)
;--- If Nixon elected (TECH 41) then implement Vietnamization (TECH 73) on June 1969 (Turn 52)
@IF
TURN
turn=52
@AND
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
President Nixon has ordered his administration to implement the Vietnamization policy to end U.S. involvement in the Vietnam War through a program to "expand, equip, and train South Vietnam's forces and assign to them an ever-increasing combat role, at the same time steadily reducing the number of U.S. combat troops."
^
Brought on by the Viet Cong's Tet Offensive, the policy refers to U.S. combat troops specifically in the ground combat role, but does not reject combat by the U.S. Air Force, as well as the support to South Vietnam.
^
As such, moving forward, American combat troops will be progressively withdrawn, over the next couple of years, from the Vietnamese theater, starting with the 9th US Infantry Division in the next two months...  
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=73
@ENDIF

@IF
TURN
turn=52
@AND
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
In addition, the ARVN infantry divisions will be progressively re-equiped with modern weapons and the draft of eligible men will be increased. 
^
Therefore the four South Vietnamese Corps cities will now be recruiting the newly equiped 'ARVN Inf 69' units and in greater numbers than their predecessor the 'ARVN Inf 65' units.
^
Finally, as the United States prepares to gradually witdraw from the conflict, American companies which have profited from many lucrative defense contracts prepare to do the same and, as such, the South Vietnamese Ministry of Trade becomes obsolete.
ENDTEXT
@ENDIF

;--- b. US IMPLEMENTS CAMBODIAN Coup & Incursion (TECH 47)
;------ b_1. Requires Pre-tech 1 (Tech X4) which SVN/US player may only receive if Nixon elected and FLAG 2 OFF (didn't already implement 'Cambodian Invasion' Tech)
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=2	
State=OFF
@THEN
JUSTONCE
GiveTechnology		
receiver=South Vietnam
technology=96
@ENDIF

;--- If receives Pre-tech 1 opens path for SVN/US to research CAMBODIAN Coup & Incursion (Tech 47)
;--- Turn SVN Flag 4 On for Khmer Rouge activation
@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=4
TEXT
IMPORTANT MACV COMMUNIQUE: INTELLIGENCE BRIEFING!
^
In response to General Lon Nol's coup deposing Prince Sihanouk, President Nixon authorizes limited operations into Cambodia to remove the NVA sanctuaries as bases of operation against the ARVN forces.
^
In a reversal of the Prince's one-sided policy of neutrality, Lon Nol shuts down the port of Sihanoukville, which was used by the North Vietnamese to supply its troops in southern Cambodia, and as such no further NVA troops will deployed in southern Cambodia (between NVA Snactuaries 4,126 and 17,113).

In addition, the Cambodian army (FANK) is mobilized to oust the North Vietnamese forces from its territory.
^
As a consequence, Hanoi sends troops in northern Cambodia to secure its bases and begins fully arming its Khmer Rouge allies.
ENDTEXT
CREATEUNIT
unit=Full OPS
owner=PR of China
veteran=no
homecity=none
locations
14,104
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
13,103
15,103
15,105
endlocations
@ENDIF 

@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
JUSTONCE
GiveTechnology		
receiver=Cambodia
technology=29
@ENDIF

;------ Cambodian incursion triggers Anti-War Movement
@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
Washington Post, DC -- Nixon administration escalates war!
^
Having chosen to escalate the war by sending U.S. combat troops into Cambodia has delitorious effects on the American home front, as many citizens are growing increasingly weary of the country's involvement in the conflict. Many student associations across the nation occupy campuses and hold anti-war protests.
^
In many respects, the student antiwar movement reflects growing disillusionment among young Americans about politics and society as a whole. Influenced by the writers of the rebellious Beat Generation of the 1950s, young people in the United States express frustration about racism, gender issues, consumerism, and authority in general... 
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=17
@ENDIF

; Run bat file allowing cross border movement only if received CAMBODIAN Coup & Incursion (Tech 47) and SVN Flag 2 is OFF (meaning SVN/US hasn't already invaded Cambodia)
@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=2	; 
State=Off
@THEN
JUSTONCE
Text
IMPORTANT MACV COMMUNIQUE: FILE CHANGE
^
The combined MACV and ARVN Chiefs of Staff send out orders to their Corps commanders to prepare for an incursions into Cambodia.
^
American and elite and mechanized South Vietnamese forces (1st ARVN, Airborne, M113 ARVN and M-41 Bulldog) will now be able to enter and cross the border into Cambodia.
^
Save the game, Exit ToT, and run the "Nam65.bat" file. Select option 2, "SVN/US Invasions - Incursions".
^
NOTE: There is no need to re-run the bat file if you were previously prompted to run it for either the NVN or Cambodian Invasion. 
EndText
@ENDIF

;------ b_2. Leads to MakeAgresson Cambodia vs NVA/NLF
@IF
CheckFlag
Who=South Vietnam
Flag=4	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Cambodia
whom=North Vietnam
@ENDIF

@IF
CheckFlag
Who=South Vietnam
Flag=4	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=North Vietnam
whom=Cambodia
@ENDIF

;--- NVN Hate Cambodia
@IF
CheckFlag
Who=South Vietnam
Flag=4	; 
State=On
@AND
RANDOMTURN
denominator=1
@THEN
ModifyReputation
Who=North Vietnam
whom=Cambodia
modifier=100
@ENDIF

;------ b_3. Triggers Khmer Rouge (see 28. Khmer Rouge)

;------ b_4. Shuts down Sihanoukville
@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
Flag
Continuous
Who=North Vietnam
State=Off
Flag=2
@ENDIF
 
;--- c. US IMPLEMENTS LAOTIAN Operation Lam Son 719 (TECH 4)
;------ c_1. Requires Pre-tech 2 (Tech X5) which SVN/US player may only receive if Nixon elected and FLAG 3 OFF (didn't already implement 'Laotian Invasion' Tech)
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=3	
State=OFF
@THEN
JUSTONCE
GiveTechnology		
receiver=South Vietnam
technology=97
@ENDIF

;--- If receives Pre-tech 2 opens path for SVN/US to research LAOTIAN Operation Lam Son 719 (TECH 4)
;--- Turn SVN Flag 5 On for Pathet Lao activation
@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: INTELLIGENCE BRIEFING!
^
President Thieu, in order to disrupt the Ho Chi Minh trail and relieve pressure on South Vietnam, the Joint Chiefs of Staff authorize a limited military operation, code named "Operation Lam Son 719", into Laos, with the objective of capturing the town of Tchepone, suspected to be a major supply base for the North Vietnamese.
^
The operation is designed to be a test of the ARVN's capabilities since Vietnamization was implemented and as such only South Vietnamese ground forces are permitted to enter into Laos, though US air units may continue to provide support.
^
If your forces are able to capture the town in the next 4 turns, you will gain prestige with America and they will grant you an extra 2000 gold in funds and ship 2 M-41 Bulldog and 3 M113 APC battalions worth of equipment to equip your army.
ENDTEXT
CREATEUNIT
unit=Full OPS
owner=PR of China
veteran=no
homecity=none
locations
17,83
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
Randomize
locations
16,82
16,84
endlocations
@ENDIF

; Run bat file allowing cross border movement only if received LAOTIAN Operation Lam Son 719 (TECH 4) and SVN Flag 3 is OFF (meaning SVN/US hasn't already invaded Laos)
@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=3	; 
State=Off
@THEN
JUSTONCE
Text
IMPORTANT MACV COMMUNIQUE: FILE CHANGE
^
The ARVN Chiefs of Staff send out orders to their Corps commanders to prepare the forces under their command for an incursion into Laos.
^
Elite and mechanized South Vietnamese forces ONLY (1st ARVN, Airborne, M113 ARVN and M-41 Bulldog) are authorized to cross the border and enter into Laos.
^
Save the game, Exit ToT, and run the "Nam65.bat" file. Select option 2, "SVN/US Invasions - Incursions". 
^
NOTE: There is no need to re-run the bat file if you were previously prompted to run it for either the NVN or Cambodian Invasion.
EndText
@ENDIF

;------ c_2. Triggers Pathet Lao (see 29. Pathet Lao)

;------ c_3. NVA reinforcements pour into Laos gets 12x Reg, 2x Elite, 1x Sapper, 3x Garr, 1x 122mm Art, 2x 57mm, 1x 85mm, 2x PT-76 in Laos
@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=12
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=2
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Garrison
count=3
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF    

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF 

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=85mm AA
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PT-76
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,59
25,69
29,79
endlocations
@ENDIF

;--- c_4. Reward SVN if capture Tchepone during Operation Lam Son 719

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=South Vietnam
State=On
Flag=5
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=5
Flag
Continuous
Who=South Vietnam
State=Off
Flag=5
@ENDIF

@IF
CITYTAKEN
city=Tchepone
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=5	
State=ON 
@THEN
JUSTONCE
TEXT
Having successfully captured the town of Tchepone in southern Laos, as part of Operation Lam Son 719, America is true to its word and Congress releases extra funds and the Army delivers the extra tanks and APC'S promised to bolster South Vietnam's war effort.
ENDTEXT
CREATEUNIT
unit=M113 APC ARVN
count=3
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
56,112
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=2000
@ENDIF

@IF
CITYTAKEN
city=Tchepone
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=5	
State=ON 
@THEN
JUSTONCE
CREATEUNIT
unit=M-41 Bulldog
count=2
owner=South Vietnam
veteran=no
homecity=none
locations
32,128
56,112
endlocations
@ENDIF

;--- d. Cooper-Church Amendment
;--- Check if either SVN Flag 4 or Flag 5 are ON
@IF
CheckFlag
Who=South Vietnam
Mask=0x30
Count=1
State=On
@AND
TurnInterval
interval=6 
@THEN
JUSTONCE
TEXT
Washington Post -- Congress passes Cooper-Church Amendement!
^
As a reaction to Nixon's expansion of the war, and outrage amongst many Americans, the US Congress passes the Cooper Church Amendment which "ends funding to retain U.S. ground troops and military advisors in Cambodia and Laos".
^
The amendment is seen as a landmark in the history of opposition to the war, congressional initiatives to bring the fighting to an end, and efforts to control executive power in foreign policy...
ENDTEXT
CREATEUNIT
unit=Air OPS
owner=PR of China
veteran=no
homecity=none
locations
14,104
endlocations
TakeTechnology		
whom=South Vietnam
technology=56
CHANGEMONEY
receiver=South Vietnam
amount=-600
@ENDIF

@IF
CheckFlag
Who=South Vietnam
Mask=0x30
Count=1
State=On
@AND
TurnInterval
interval=6 
@THEN
JUSTONCE
TEXT
As a consequence, the SVN/US player MUST withdraw any and all United States ground forces presently located either in Cambodia or Laos by the quickest and shortest route back into South Vietnam avoiding any combat with enemy forces along the way.
^
The SVN/US player is allowed to conduct air operations over Cambodia, as indicated by the newly placed Air OPS icon situated in tile 14,104, for the remainder of the war.
^
In addition, the SVN/US player loses Congressional Support (the advance that improves the effectiveness of the Newspapers (Temples) by one).
ENDTEXT
CREATEUNIT
unit=View
owner=South Vietnam
veteran=no
homecity=none
locations
13,103
13,105
15,103
endlocations
@ENDIF 


;--- e. Linebacker I & II
;--- If Nixon elected (Tech 41) and NVN receives Easter Offensive (Tech 61)
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=61
receiver=North Vietnam
@THEN
JUSTONCE
Delay
Delay=5
TEXT
In response to North Vietnam's Easter Offensive the US Air Force assigns two new squadrons of B-52 Stratofortress bombers to augment the 4133th Bomber wing, as part of Operation Linebacker.
^
Operation Linebacker, the designation for the new interdiction campaign, would have four objectives: to isolate North Vietnam from its outside sources of supply by destroying railroad bridges and rolling stock in and around Hanoi and northeastward toward the Chinese frontier; the targeting of primary storage areas and marshalling yards; to destroy storage and transshipment points; and finally, to eliminate (or at least damage) the North's air defense system. 
^
With nearly 85 percent of North Vietnam's imports (which arrived by sea) blocked by Pocket Money, the administration and the Pentagon believed that this would cut its final lines of communication with its socialist allies. The People's Republic of China alone shipped an average of 22,000 tons of supplies a month over two rail lines and eight major roads that linked it with North Vietnam.
^
Linebacker was the first continuous bombing effort conducted against North Vietnam since the end of Operation Rolling Thunder in November 1968.
ENDTEXT
CREATEUNIT
unit=B-52 Stratofortress
count=2
owner=South Vietnam
veteran=no
homecity=Guam AFB
locations
59,33,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=61
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Air OPS
owner=PR of China
veteran=no
homecity=none
locations
8,10
endlocations
@ENDIF

;--- f. Haiphong port mined
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=61
receiver=North Vietnam
@THEN
JUSTONCE
Delay
delay=1
TEXT
In response the the North Vietnamese Easter Offensive, President Nixon orders the US Seventh Fleet to mine the North Vietnamese ports, in particular Haiphong harbour which serves as the primary debarkation point for all Soviet arms shipments to the country.
^
As a consequence, all Soviet heavy arms shipments through Haiphong cease as long as the port entrance remains mined.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=78
@ENDIF

;--- g. Nixon Re-elected
@IF
TURN
turn=93
@AND
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
Washington, November 5th, 1972 (AP) - Nixon takes second term by landslide!
^
President Richard Nixon has won an overwhelming victory in the US presidential elections for a second term in the White House. He took 61% of the popular vote, compared with 38% for his Democrat rival Senator George McGovern. 
^
He won 521 electoral college votes and carried 49 states while Mr McGovern took just 17 votes and won only two states, Massachusetts and the predominantly black district of Columbia. However, Mr Nixon's Republican party lost ground in the Senate and fell short of gaining control of the House of Representatives.
^
Senator McGovern had become regarded as a radical. He advocated higher taxes and supported what became known as the three As (abortion, acid and amnesty). 
^
He supported reform of the law on cannabis, an amnesty for those who avoided service in Vietnam and a reduction of the restrictions on abortion. But his views were unpopular with the largely conservative voting population.
ENDTEXT
@ENDIF

;--- h. Paris Peace Accords
;--- h_1. If Nixon elected (Tech 41)and NVN received Easter Offensive (Tech 92)then NVN Flag 5 to ON
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=5
@ENDIF

;--- h_2. If FLAG 5 ON and either AnyCity Taken or Turn 95 arrives (January 1973)
@IF
CheckFlag
Who=North Vietnam
Flag=5	
State=ON 
@AND
CITYTAKEN
city=AnyCity
attacker=North Vietnam
defender=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=19
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=5	
State=ON 
@AND
TURN
Turn=95
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=20
@ENDIF

;--- h_2. If NVN FLAG 19 or FLAG 20 ON then give Paris Peace Accords (Tech 68)
@IF
CheckFlag
Who=North Vietnam
Mask=0x180000
Count=1
State=On
TEXT
Paris Peace Accords
^
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=68
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of the Paris Peace Accords, Haiphong harbor de-mined.
ENDTEXT
TakeTechnology		
whom=South Vietnam
technology=78
@ENDIF

;--- i. Operation Enhance Plus
@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
Operation Enhance Plus!
^
President Nixon orders additional U.S. military equipment to be delivered to South Vietnam. Nixon anticipated that a peace agreement would be concluded shortly and that the agreement would ban an expansion of military aid to South Vietnam and permit only a one-for-one replacement of military equipment. 
^
He wanted the South Vietnamese to have a maximum of equipment on hand before the restrictions in the peace agreement took place.
ENDTEXT
CREATEUNIT
unit=F-5 Tiger
count=2
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=A-37 Dragonfly
count=3
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=UH-1 ARVN
count=5
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
56,112
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M-48 Patton
count=2
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
56,112
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=M113 APC ARVN
count=3
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
56,112
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. SV
count=2
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
56,112
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=155mm Art. SV
count=2
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
30,120
44,66
56,112
endlocations
@ENDIF

;--- j. Case-Church Amendment
;--- Six turns after PPA give Case-Church Amendment which brings about final US withdrawal from Vietnam (obsoletes US PAcific Command and AAP Wonders)
@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam
@AND
TurnInterval
interval=7 
@THEN
JUSTONCE
TEXT
Washington Post -- Congress passes Case-Church Amendment!
^
The Case–Church Amendment was legislation approved by the U.S. Congress in June 1973 that prohibited further U.S. military activity in Vietnam, Laos and Cambodia unless the president secured Congressional approval in advance. This ended direct U.S. military involvement in the Vietnam War, although the U.S. continued to provide military equipment and economic support to the South Vietnamese government. It is named for its principal co-sponsors, Senators Clifford P. Case (R-NJ) and Frank Church (D-ID). 
^
Originally proposed and defeated in August 1972, the Amendment was reintroduced on January 26, 1973 and approved by the Senate Foreign Relations Committee on May 13. It passed the United States Congress with bipartisan support in June by a margin of 325–86 in the House, and 73–16 in the Senate.
^
As a consequence, the US Pacific Command - Military Assistance Command Vietnam (MACV) and the American Aid Program in South Vietnam are disbanded (though the economic aid package and Military Assistance Programs which allows the nation to buy US equipement, though reduced, will continue). The few remaining American troops will be witdrawn as per schedule.
^
As such, moving forward, South Vietnam's economic aid package will be reduced by 100 gold every turn.
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=35
@ENDIF

; ----------------------------------------
; 11. US Withdrawals
; ----------------------------------------

;--- a. Vietnamization/De-escalation policy implemented by United States

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=2
TEXT
President Thieu, the 9th US Infantry Division return to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
48,128,48,128,48,128,48,128
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam 
@THEN
JUSTONCE
Delay
Delay=2
TEXT
MACV, SAIGON: INTELLIGENCE BRIEFING!
^
President Thieu, the US Navy recalls the TF1 Carrier Battle Group to the States.
^
In additon, if not already eliminated along with the carrier unit you MUST DISBAND it's associated air wing of 4 naval air units. The TF1 USN group consisted of one F-8 Crusader, two A-4 Skyhawk and one A-6 Intruder. 
^
As such, you should only have 4 naval air units assigned to each of your two remaining carriers at the end of the turn (for a total of 8 naval air units).  
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
38,28,38,28,38,28,38,28
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=4
TEXT
President Thieu, the 3rd US Marine Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,78,46,78,46,78,46,78
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam 
@THEN
JUSTONCE
Delay
Delay=6
TEXT
President Thieu, the 82nd US Airborne Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
54,78,54,78,54,78,54,78
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=9
TEXT
President Thieu, the 26th US Marine Brigade returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,82,46,82,46,82,46,82
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=10
TEXT
President Thieu, the US Airforce 3rd Fighter Wing returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
38,36,38,36,38,36,38,36
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=10
TEXT
President Thieu, the US Airforce 315th Commando Wing returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
44,36,44,36,44,36,44,36
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=16
TEXT
President Thieu, the 199th Infantry Brigade returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,136,46,136,46,136,46,136
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=16
TEXT
President Thieu, the 4th US Infantry Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,104,46,104,46,104,46,104
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=19
TEXT
President Thieu, the 25th US Infantry Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,132,46,132,46,132,46,132
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=20
TEXT
President Thieu, the Field Force II HQ returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,120,46,120,46,120,46,120
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=20
TEXT
President Thieu, the 1st US Marine Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,74,46,74,46,74,46,74
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=21
TEXT
President Thieu, the 11th Armored Cavalry regiment returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,140,46,140,46,140,46,140
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=22
TEXT
President Thieu, the III MAR HQ returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,70,46,70,46,70,46,70
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=22
TEXT
President Thieu, the DIV. ART. HQ is disbanded.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,88,46,88,46,88,46,88
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=22
TEXT
President Thieu, the 1st Infantry Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,124,46,124,46,124,46,124
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=24
TEXT
President Thieu, the Field Force I HQ returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,96,46,96,46,96,46,96
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=24
TEXT
President Thieu, the US Airforce 355th Tactical Wing returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
50,36,50,36,50,36,50,36
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=26
TEXT
President Thieu, the 173rd US Airborne Brigade returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
54,82,54,82,54,82,54,82
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=26
TEXT
President Thieu, the 5th US Mechanized Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,108,46,108,46,108,46,108
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=31
TEXT
President Thieu, the 101st US Airborne Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
54,74,54,74,54,74,54,74
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam 
@THEN
JUSTONCE
Delay
Delay=32
TEXT
President Thieu, the 23rd US Infantry Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,112,46,112,46,112,46,112
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=36
TEXT
President Thieu, the XXIV HQ returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
54,70,54,70,54,70,54,70
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
Delay
Delay=36
TEXT
President Thieu, the last American combat unit in Vietnam, the 1st US Cavalry Division returns to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
46,100,46,100,46,100,46,100
@ENDIF

;--- US Airforce and USN withdrawals
;--- If SVN/US player receives Paris Peace Accord (Tech 68) all USN air operations cease
@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam 
@THEN
JUSTONCE
TEXT
President Thieu, the US Navy ceases all air operations in South East Asia.
^
In addition, to the removal of the TF2 and TF2 you must immediately disband any American naval air units still in play (F-8 Cursader, F-4B Phantom, A-4 Skyhawk, A-6 Intruder and/or A-7 Corsair).
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
44,28,44,28,44,28,44,28
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=68
receiver=South Vietnam 
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=10
maprect
50,28,50,28,50,28,50,28
@ENDIF

;--- If SVN/US player receives Case-Church Bill (Tech 35) all US air operations cease
@IF
RECEIVEDTECHNOLOGY
technology=35
receiver=South Vietnam 
@THEN
JUSTONCE
TEXT
President Thieu, the US Airforce ceases all operations in South East Asia.
^
As such, the US Airforce recalls the 12th Fighter, 388th and 474th Tactical air wings to the States.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
38,40,38,40,38,40,38,40
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=35
receiver=South Vietnam 
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=10
maprect
50,40,50,40,50,40,50,40
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=35
receiver=South Vietnam 
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=10
maprect
50,44,50,44,50,44,50,44
@ENDIF

;--- If SVN/US player receives Case-Church Bill (Tech 35) all US air operations cease
@IF
RECEIVEDTECHNOLOGY
technology=35
receiver=South Vietnam 
@THEN
JUSTONCE
TEXT
President Thieu, the B-52's of the US 8th Airforce out of Guam cease all operations in South East Asia.
ENDTEXT
ChangeTerrain 
map=2
terraintype=10
maprect
59,33,59,33,59,33,59,33
@ENDIF

;--- b. Westmoreland Escalation troop withdrawals

@IF
Turn
turn=62
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The 6th Infantry Division returns to the States
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
58,128,58,128,58,128,58,128
@ENDIF

@IF
Turn
turn=63
@AND
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The 27th NG Brigade returns to the States
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
58,132,58,132,58,132,58,132
@ENDIF

;--- c. If receive Vietnamization/De-escalation SVN may no longer recruit US divisions (4th, 9th, 23rd, 25th or 11 Arm Cav) or build military infrastructure
@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: INTELLIGENCE BRIEFING!
^
Since the current American administration has decided to implement its new de-escalation policy in order to gradually turn over the war to the South Vietnamese, it will no longer be possible, if you haven't done so already, to recruit the 4th, 9th, 23rd and 25th infantry divisions or the 11th Armored Cavalry regiment.
^
In addition, since the United States is planning on pulling out of the region, American contractors, who've been responsible for most of the major infrastructure projects in the country, are also returning stateside. As such, it is no longer possible to build Airbases or Port Facilities. 
ENDTEXT
TAKETECHNOLOGY
whom=South Vietnam 
technology=57
@ENDIF

; ----------------------------------------
; 12. Allied Reinforcements
; ----------------------------------------

;--- 1st contingent of ANZAC Brigade plus Brigade Supply Train

@IF
TURN
turn=3
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=9
maprect
30,106,30,106,30,106,30,106
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. AZ
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
TEXT
The first units of the ANZAC Brigade arrive in Vietnam.
ENDTEXT
CREATEUNIT
unit=ANZAC Inf.
count=2
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,128,1
endlocations
@ENDIF

;--- 2nd Korean Marine Brigade plus Brigade Supply Train

@IF
TURN
turn=7
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=9
maprect
30,100,30,100,30,100,30,100
@ENDIF

@IF
TURN
turn=7
@THEN
JUSTONCE
TEXT
The 2nd Korean Marine Brigade arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=ROK Marines
count=4
owner=South Vietnam
veteran=Yes
homecity=2nd ROK Mar
locations
56,108,1
endlocations
@ENDIF

;--- Korean Capitol Division plus Division Supply Train

@IF
TURN
turn=8
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
30,92,30,92,30,92,30,92
@ENDIF

@IF
TURN
turn=8
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. KR
owner=South Vietnam
veteran=no
homecity=CAP ROK Div
locations
56,108,1
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
JUSTONCE
TEXT
The 1st and Cavalry regiments of the Korean Capitol (Tiger) Division arrive in Vietnam.
ENDTEXT
CREATEUNIT
unit=ROK CAP Div
count=6
owner=South Vietnam
veteran=no
homecity=CAP ROK Div
locations
56,108,1
endlocations
@ENDIF

;--- 3rd infantry battalion of ANZAC Brigade

@IF
TURN
turn=14
@THEN
JUSTONCE
TEXT
The Australian government sends another contingent to augment the ANZAC Brigade in Vietnam.
ENDTEXT
CREATEUNIT
unit=ANZAC Inf.
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,128,1
endlocations
@ENDIF

;--- 26th Rgt of Korean Capitol Division
 
@IF
TURN
turn=14
@THEN
JUSTONCE
TEXT
The 26th Regiment of the Korean Capitol Division arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=ROK CAP Div
count=3
owner=South Vietnam
veteran=no
homecity=CAP ROK Div
locations
56,108,1
endlocations
@ENDIF

;--- Entire Korean 9th Division plus Division Supply Train

@IF
TURN
turn=19
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
30,96,30,96,30,96,30,96
@ENDIF

@IF
TURN
turn=19
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. KR
owner=South Vietnam
veteran=no
homecity=CAP ROK Div 
locations
56,112,1
endlocations
@ENDIF

@IF
TURN
turn=19
@THEN
JUSTONCE
TEXT
The Korean 9th Infantry (White Horse) Division arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=ROK 9th Div
count=9
owner=South Vietnam
veteran=no
homecity=9th ROK Div 
locations
56,112,1
endlocations
@ENDIF

;--- Thai Queen's Cobra Brigade plus Brigade Supply Train

@IF
TURN
turn=31
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=9
maprect
30,112,30,112,30,112,30,112
@ENDIF

@IF
TURN
turn=31
@THEN
JUSTONCE
TEXT
The Thai Queen's Cobra Brigade arrives in Vietnam.
ENDTEXT
CREATEUNIT
unit=Thai Inf.
count=3
owner=South Vietnam
veteran=no
homecity=RTA Inf Div
locations
32,128,1
endlocations
@ENDIF

;--- 4th infantry battalion along with armored squadron of ANZAC Brigade

@IF
TURN
turn=32
@THEN
JUSTONCE
TEXT
The Australian government sends a final battalion along with C Squadron of the 1st Armoured Regiment to augment the ANZAC Brigade in Vietnam. 
ENDTEXT
CREATEUNIT
unit=ANZAC Inf.
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=32
@THEN
JUSTONCE
CREATEUNIT
unit=Centurion
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,128,1
endlocations
@ENDIF

;--- Thai 1st Rgt and RTA brigades plus Divisional Supply Train

@IF
TURN
turn=48
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=8
maprect
30,112,30,112,30,112,30,112
@ENDIF

@IF
TURN
turn=48
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. TH
owner=South Vietnam
veteran=no
homecity=RTA Inf Div
locations
32,128,1
endlocations
@ENDIF

@IF
TURN
turn=48
@THEN
JUSTONCE
TEXT
President Thieu, the Thai 1st Rgt and RTA brigades arrive in Vietnam to form the Black Panther Division.
ENDTEXT
CREATEUNIT
unit=Thai Inf.
count=6
owner=South Vietnam
veteran=no
homecity=RTA Inf Div
locations
32,128,1
endlocations
@ENDIF

; ----------------------------------------
; 13. Allied Replacements
; ----------------------------------------

@IF
UNITKILLED
unit=ANZAC Inf.
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ANZAC Inf.
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=Centurion
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=Centurion
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,80,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=105mm Art. AZ
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=105mm Art. AZ
owner=South Vietnam
veteran=no
homecity=ANZAC Bde
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ROK CAP Div
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ROK CAP Div
owner=South Vietnam
veteran=no
homecity=CAP ROK Div
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ROK 9th Div
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ROK 9th Div
owner=South Vietnam
veteran=no
homecity=9th ROK Div 
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ROK Marines
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ROK Marines
owner=South Vietnam
veteran=no
homecity=2nd ROK Mar
locations
32,82,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=105mm Art. KR
attacker=Anybody
defender=South Vietnam
@THEN
TEXT
105mm Art. RK Replacement
ENDTEXT
CREATEUNIT
unit=105mm Art. KR
owner=South Vietnam
veteran=no
homecity=CAP ROK Div
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=Thai Inf.
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=Thai Inf.
owner=South Vietnam
veteran=no
homecity=RTA Inf Div
locations
32,84,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=105mm Art. TH
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=105mm Art. TH
owner=South Vietnam
veteran=no
homecity=RTA Inf Div
locations
32,84,1
endlocations
@ENDIF

; ----------------------------------------
; 14. Allied Withdrawals
; ----------------------------------------

;--- CONSEQUENCES of US CAMDODIAN INVASION (Tech 33)
@IF
RECEIVEDTECHNOLOGY
technology=33
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The Thai Black Panther division returns to Thailand.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,112,28,112,28,112,28,112
@ENDIF

;--- CONSEQUENCES of US LAOTIAN INVASION (Tech 2)
@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=South Vietnam 
@THEN
JUSTONCE
TEXT
The ANZAC regiment is recalled to Australia by Prime Minister Harold Holt in protest of America's expansion of the war.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,106,28,106,28,106,28,106
@ENDIF

;--- REGULARLY SCHEDULED WITHDRAWALS
;--- ANZAC Brigade completes its Vietnam tour of duty
;--- If turn 80 (October 1971) and SVN never invaded Laos (TECH 2)
@IF
TURN
turn=80
@AND
CheckFlag
Who=South Vietnam
Flag=3	
State=OFF 
@THEN
JUSTONCE
TEXT
In accordance with the American de-escalation, the 1st Australian Task Force tour of duty in Vietnam is over and the unit returns home.
^
During their time in Vietnam, the Australians suffered 478 killed and 3,025 wounded.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,106,28,106,28,106,28,106
@ENDIF

;--- Korean Marine Brigade and Capitol and 9th Infantry Divisions complete their Vietnam tour of duty
;--- If turn 84 (February 1972) and SVN never invaded North Vietnam (TECH 42)
@IF
TURN
turn=84
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=OFF 
@THEN
JUSTONCE
TEXT
After serving more than 6 years, the 2nd Korean Marine Brigade's tour of duty in Vietnam comes to an end as the unit is recalled homed to Korea.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,100,28,100,28,100,28,100
@ENDIF

;--- If turn 97 (March 1973) and SVN never invaded North Vietname (TECH 42)
@IF
TURN
turn=97
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=OFF 
@THEN
JUSTONCE
TEXT
After serving more than 6 and 7 years respectively, the Korean 9th Infantry and Capitol divisions tour of duty in Vietnam comes to an end as both units are recalled homed to Korea.
^
A total of 320,000 South Koreans served in the Vietnam War, with a peak strength (of any given time) at around 48,000. The final casualty count included 5,099 killed and 11,232 wounded.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,96,28,96,28,96,28,96
@ENDIF

@IF
TURN
turn=97
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=OFF 
@THEN
JUSTONCE
ChangeTerrain 
map=1
terraintype=10
maprect
28,92,28,92,28,92,28,92
@ENDIF

;--- Thai Black Panther Infantry Division completes its Vietnam tour of duty
;--- If turn 78 (August 1971) and SVN never invaded Cambodia (TECH 33)
@IF
TURN
turn=78
@AND
CheckFlag
Who=South Vietnam
Flag=2	
State=OFF 
@THEN
JUSTONCE
TEXT
The Thai government, in  accordance with the American withdrawal, have recalled the Royal Thai Army Expeditionary Division (the “Black Panthers”) home.
^ 
The Black Panther's casualty count included 351 killed and 1,358 wounded.
ENDTEXT
ChangeTerrain 
map=1
terraintype=10
maprect
28,112,28,112,28,112,28,112
@ENDIF

; ----------------------------------------
; 15. SVN Reinforcements & Replacements
; ----------------------------------------

;--- ARVN REINFORCEMENTS

;--- ARVN Infantry Divisions (SVN starts the game with 9 divisions, the 1st, 2nd, 5th, 7th, 9th, 21st, 22nd, 23rd and 25th)
;--- 10th ARVN Infantry Division

@IF
TURN
turn=3
@THEN
JUSTONCE
TEXT
The newly formed 10th ARVN infantry division joins the ranks of the South Vietnamese army and is deployed to the III Corps.
ENDTEXT
CREATEUNIT
unit=ARVN Inf 65
count=9
owner=South Vietnam
veteran=no
homecity=none
locations
30,120
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. SV
owner=South Vietnam
veteran=no
homecity=none
locations
30,120
endlocations
@ENDIF

;--- 3rd ARVN Infantry Division
@IF
TURN
turn=80
@THEN
JUSTONCE
TEXT
The newly formed 3rd ARVN infantry division joins the ranks of the South Vietnamese army and is deployed to the I Corps.
ENDTEXT
CREATEUNIT
unit=ARVN Inf 69
count=9
owner=South Vietnam
veteran=no
homecity=none
locations
32,58
37,61
44,66
endlocations
@ENDIF

@IF
TURN
turn=80
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. SV
owner=South Vietnam
veteran=no
homecity=none
locations
32,58
37,61
44,66
endlocations
@ENDIF

;--- ARVN Airborne Division (SVN starts the game with 6 battalions)

@IF
TURN
turn=9
@THEN
JUSTONCE
TEXT
The 8th and 9th Airborne battalions are created and join the ARVN Airborne Division.
ENDTEXT
CREATEUNIT
unit=ARVN Airborne
count=2
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=37
@THEN
JUSTONCE
TEXT
The final 11th Airborne battalion is created and thereby completes the ARVN Airborne division's roster of 9 combat battalions.
ENDTEXT
CREATEUNIT
unit=ARVN Airborne
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

;--- ARVN Marines Division (SVN starts the game with 5 battalions)

@IF
TURN
turn=9
@THEN
JUSTONCE
TEXT
The 6th Marine battalion is created and joins the ARVN Marine Division along with the division's artillery regiment.
ENDTEXT
CREATEUNIT
unit=ARVN Marines
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=9
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. SV
owner=South Vietnam
veteran=no
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=58
@THEN
JUSTONCE
TEXT
The 7th Marine battalion is created and joins the ARVN Marine Division.
ENDTEXT
CREATEUNIT
unit=ARVN Marines
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=64
@THEN
JUSTONCE
TEXT
The 8th Marine battalion is created and joins the ARVN Marine Division.
ENDTEXT
CREATEUNIT
unit=ARVN Marines
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=70
@THEN
JUSTONCE
TEXT
The 9th Marine battalion is created and thereby completes the ARVN Marine Division roster of 9 combat battalions.
ENDTEXT
CREATEUNIT
unit=ARVN Marines
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

;--- ARVN Ranger battalions (starts the game with 12 battalions)

@IF
TURN
turn=10
@THEN
JUSTONCE
TEXT
The 33rd and 37th ARVN Ranger battalions are recruited and join the ranks of the ARVN armed forces.
ENDTEXT
CREATEUNIT
unit=ARVN Rangers
count=2
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=17
@THEN
JUSTONCE
TEXT
The 39th ARVN Ranger battalion is recruited and joins the ranks of the ARVN armed forces.
ENDTEXT
CREATEUNIT
unit=ARVN Rangers
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=28
@THEN
JUSTONCE
TEXT
The 23rd ARVN Ranger battalion is recruited and joins the ranks of the ARVN armed forces.
ENDTEXT
CREATEUNIT
unit=ARVN Rangers
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
TURN
turn=40
@THEN
JUSTONCE
TEXT
The 34th ARVN Ranger battalion is recruited and joins the ranks of the ARVN armed forces.
ENDTEXT
CREATEUNIT
unit=ARVN Rangers
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The 35th, 36th and 51st ARVN Ranger battalions are the last ranger units to be raised and to join the ranks of the ARVN armed forces.
ENDTEXT
CREATEUNIT
unit=ARVN Rangers
count=3
owner=South Vietnam
veteran=yes
homecity=none
locations
28,124
endlocations
@ENDIF

;--- ARVN REPLACEMENTS

@IF
TURN
turn=1
@THEN
JUSTONCE
GiveTechnology		
receiver=South Vietnam
technology=55
@ENDIF

;--- Vietnamization policy NOT implemented by United States (TECH 73)

@IF
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=ARVN Inf 65
owner=South Vietnam
veteran=no
homecity=none ;Da Nang - I +
locations
44,66
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=ARVN Inf 65
owner=South Vietnam
veteran=no
homecity=none ;Pleiku - II *
locations
42,88
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=ARVN Inf 65
owner=South Vietnam
veteran=no
homecity=none ;Bien Hoa - III*
locations
30,120
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=55
receiver=South Vietnam
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=ARVN Inf 65
owner=South Vietnam
veteran=no
homecity=none ;Can Tho - IV +
locations
18,132
endlocations
@ENDIF

;--- Vietnamization policy implemented by United States (TECH 73)

;--- After receive Vietamization take technology ARVN 65 (Tech 55) which stops recruitment of ARVN Inf 65 units 
@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
TAKETECHNOLOGY
whom=South Vietnam 
technology=55
@ENDIF

;--- Vietnamization: A (same reinforcements as before Vietnamization but recruit ARVN Inf 69 units instead)
@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Da Nang - I +
locations
44,66
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Pleiku - II *
locations
42,88
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Bien Hoa - III*
locations
30,120
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Can Tho - IV +
locations
18,132
endlocations
@ENDIF

;--- Vietnamization: B  (additional reinforcements as ARVN ramps up draft)

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Pleiku - II *
locations
42,88
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=ARVN Inf 69
owner=South Vietnam
veteran=no
homecity=none ;Bien Hoa - III*
locations
30,120
endlocations
@ENDIF

;--- ARVN REPLACEMENTS (ARVN 1st Division, ARVN Airborne, ARVN Marines and ARVN Rangers)

@IF
UNITKILLED
unit=ARVN 1st Div
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ARVN 1st Div
owner=South Vietnam
veteran=no
homecity=none
locations
37,51,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ARVN Airborne
attacker=Anybody
defender=South Vietnam
@THEN
Delay
Delay=3
CREATEUNIT
unit=ARVN Airborne
owner=South Vietnam
veteran=no
homecity=none
locations
28,124,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ARVN Marines
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ARVN Marines
owner=South Vietnam
veteran=yes
homecity=none
locations
18,124,1
endlocations
@ENDIF

@IF
UNITKILLED
unit=ARVN Rangers
attacker=Anybody
defender=South Vietnam
@THEN
CREATEUNIT
unit=ARVN Rangers
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
28,132,1
18,124,1
37,51,1
66,92,1
endlocations
@ENDIF

;--- Capture of Saigon or Hue prevents ARVN 1st Division, Airborne, Marines or Ranger replacements from arriving
;--- Also set FLAG 21 and 22 to OFF if captured by NVN/VC (flags must be ON for NVN invasion victory condition)
@IF
CITYTAKEN
city=Saigon **
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
MACV, SAIGON: Intelligence Briefing.
^
General Thieu, in a bold offensive North Vietnamese troops have captured the captial of Saigon.
^
This is a major setback as the city was the seat of many goverment agencies crucial to the prosecution of the war. 
^
The fall of the capital has shaken the will of the citizens of South Vietnam and it should be your top priority to regain the city from the enemy as soon as possible.
^
Should the North equally capture the historic capital of Hue it will spend the end of your struggle for independence and nationhood.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=Off
Flag=21
CHANGETERRAIN
Map=1
terraintype=10
maprect
26,124,26,124,26,124,26,124
@ENDIF

@IF
CITYTAKEN
city=Hue **
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
Saigon Post - North Vietnamese troops capture Hue!
^
In the early morning hours, a division-sized force of PAVN and Vietcong soldiers have launched a coordinated attack on the city of Hue.  
^
Their strategic objective was to "liberate" the entire city to help sweep the Communist insurgents into power. 
^
At 02:33, a signal flare lit up the night sky, and two battalions from the PAVN 6th Regiment attacked the western bank of the fortress-like Citadel on the northern side of the city. 
^
The city is the location of the ARVN's 1st Division headquarters and a major recruitment center.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=Off
Flag=22
CHANGETERRAIN
Map=1
terraintype=10
maprect
37,59,37,59,37,59,37,59
@ENDIF

@IF
CITYTAKEN
city=Qui Nhon +
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
General Thieu, North Vietnamese troops have overrun Qui Nhon thereby capturing a major US miltary installation. As long as the city remains in enemy hands, you or your Allies will not be able to transit troops into the city from the Order of Battle map.  
ENDTEXT
CHANGETERRAIN
Map=1
terraintype=10
maprect
58,92,58,92,58,92,58,92
@ENDIF

@IF
CITYTAKEN
city=Can Tho - IV +
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
North Vietnamese troops capture Can Tho - IV.
ENDTEXT
CHANGETERRAIN
Map=1
terraintype=10
maprect
20,132,20,132,20,132,20,132
@ENDIF

;--- Recapture of Saigon or Hue allows ARVN 1st Division, Airborne, Marines or Ranger replacements 
@IF
CITYTAKEN
city=Saigon **
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
South Vietnamese troops recapture Saigon.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=21
CHANGETERRAIN
Map=1
terraintype=5
maprect
26,124,26,124,26,124,26,124
@ENDIF

@IF
CITYTAKEN
city=Hue **
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
GeneralThieu, in bitter street to street fighting South Vietnamese troops recapture the historic city of Hue.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=22
CHANGETERRAIN
Map=1
terraintype=5
maprect
37,59,37,59,37,59,37,59
@ENDIF

@IF
CITYTAKEN
city=Qui Nhon +
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
South Vietnamese troops recapture Qui Nhon.
ENDTEXT
CHANGETERRAIN
Map=1
terraintype=5
maprect
58,92,58,92,58,92,58,92
@ENDIF

@IF
CITYTAKEN
city=Can Tho - IV +
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
South Vietnamese troops recapture Can Tho.
ENDTEXT
CHANGETERRAIN
Map=1
terraintype=5
maprect
20,132,20,132,20,132,20,132
@ENDIF

; ----------------------------------------
; 16. SVN Police, RF/PF & Hamlets
; ----------------------------------------

;--- IF SVN researches CORDS (TECH 19) also give Pre-Tech 3 (Tech 46) as prerequisite for Pacification (Tech 20)
@IF
RECEIVEDTECHNOLOGY
technology=19
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
The Civil Operations and Revolutionary Development Support (CORDS) is a pacification program of the governments of South Vietnam and the United States. The program includes a civilian (strategic hamlets) and military component (Ruff/Puff and Phoenix program).
^
The objective of CORDS is to gain support for the government of South Vietnam from its rural population which remains largely under the influence or controlled by the insurgent communist forces of the Viet Cong and the People's Army of Vietnam (North Vietnamese Army)...
ENDTEXT
GiveTechnology		
receiver=South Vietnam
technology=46
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=19
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
The immediate effect of the program is to allow the recruitment of counterinsurgency forces, represented by the 'Tunnel Rats', to rest the Viet Cong rural control of the South Vietnamese population (represented by the 'VC Base Area'). 
^
As such, after you've researched the 'Pacification' advance, one 'Tunnel Rats' units will be generated for every two VC Local unit destroyed by your forces.
^
In addition, one 'SVN Police' unit will be recruited in Saigon for every four VC Sappers destroyed. Each police unit will require support from a friendly city.
ENDTEXT
@ENDIF

;--- For every 4 VC Sapper units killed by SVN/US, after researched CORDS (Tech 19), receive a SVN Police unit

@IF
UNITKILLED
unit=VC Sapper
attacker=South Vietnam
defender=North Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=19
receiver=South Vietnam
@THEN
CREATEUNIT
unit=SVN Police
owner=South Vietnam
veteran=no
homecity=SAIGON **
RANDOMIZE
locations
28,124
38,0
38,0
38,0
endlocations
@ENDIF

;--- SVN receives Pacification (TECH 20); then set NVN FLAG 21 to ON which reduces VC Local recruitment
@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
As part of CORDS, the South Vietnamese and American Civilian authorities begin implementing the civilian component of the program, i.e. the strategic hamlets.
^
As such, hamlets will begin to be randomly generated in each of the four South Vietnamese Corps District at a rate commensurate with thier population.
^
On the other hand, it is highly recommended you protect your hamlets otherwise the destruction of each hamlet will provide a one time boost of fresh forces to your enemy.
^ 
In addition, your forces should begin a pacification campaign. If you successfully destroy three VC Base Areas and develop the Phoenix Program you will make it more difficult for the Viet Cong to enlist new recruits into their ranks (they will receive one less VC Local unit per turn for the remainder of the game). 
ENDTEXT
@ENDIF

;-------------- BEGIN TEST TEST TEST --------------
;--- Begin Pacification campaign
@IF
UNITKILLED
unit=VC Base Area
attacker=South Vietnam
defender=North Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing.
^
As part of the pacification campaign your forces destroy the 1st VC Base Area!
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=26 
@ENDIF

@IF
UNITKILLED
unit=VC Base Area
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=26	
State=ON 
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing.
^
As part of the pacification campaign your forces destroy the 2nd VC Base Area!
^
If you are able to destroy one more VC Base Area you will seriously curtail the NLF ability to recruit local forces.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=27 
@ENDIF

@IF
UNITKILLED
unit=VC Base Area
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=27	
State=ON 
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON: Intelligence Briefing.
^
President Thieu, your counterinsurgency forces have led a successfull pacification campaign in your nation's countryside. They have wrestled back control from areas previously under the sway of the NLF.
^
As such, moving forward the NLF will receive one less 'VC Sapper' unit per turn. 
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=On
Flag=21 
@ENDIF

;-------------- END TEST TEST TEST --------------

;--- SVN receives RUFF/PUFF (TECH 10)
@IF
RECEIVEDTECHNOLOGY
technology=10
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
As part of CORDS, the South Vietnamese and American Civilian authorities begin implementing one of the two military components of the program, i.e. the arming and training of Popular Forces.
^
As such, the first Popular Forces units are recruited to provide security to the newly implemented hamlet program.
^
Furthermore, moving forward, new Popular Forces units will be generated on a regular basis and since the units in question are supported by the hamlets themselves they aren't homed to any city. 
ENDTEXT
CREATEUNIT
unit=Popular Forces
count=3
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
44,66
42,88
30,120
18,132
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=10
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
Popular Forces Reinforcements
ENDTEXT
CREATEUNIT
unit=Popular Forces
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
44,66
42,88
30,120
18,132
endlocations
@ENDIF

;--- SVN receives Pacification (TECH 20)
;--- Hamlets in South Central Coast - I Corps (19% of SVN population)
@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@AND
RANDOMTURN
denominator=6
@THEN
TEXT
A new strategic hamlet is established in I Corps.
ENDTEXT
CREATEUNIT
unit=Hamlet
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,60
41,67
44,70
49,73
51,79
endlocations
@ENDIF

;--- Hamlets in Central Highlands - II Corps  (11% of SVN population)
@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@AND
RANDOMTURN
denominator=12
@THEN
TEXT
A new strategic hamlet is established in II Corps.
ENDTEXT
CREATEUNIT
unit=Hamlet
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
42,92
51,89
54,96
42,106
endlocations
@ENDIF

;--- Hamlets in Southeast - III Corps  (31% of SVN population)
@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@AND
RANDOMTURN
denominator=4
@THEN
TEXT
A new strategic hamlet is established in III Corps.
ENDTEXT
CREATEUNIT
unit=Hamlet
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
53,111
50,116
41,111
41,121
31,117
31,123
endlocations
@ENDIF

;--- Hamlets in Mekong Delta - IV Corps  (38% of SVN population)
@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
A new strategic hamlet is established in IV Corps.
ENDTEXT
CREATEUNIT
unit=Hamlet
owner=South Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,126
21,127
14,126
21,133
17,137
13,139
15,131
endlocations
@ENDIF

;--- If receive Vietnamization (Tech 73) then Pacification program (Hamlets) and Tunnel Rats ends, though RF/PF units continue to be recruited
@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
As America begins de-escalating it's involvement in the war the U.S. Congress' support for the South Vietnamese pacification program has waned and it cuts further funding of the settlement program. As such, no further hamlets will be generated in the Repbublic of Vietnam. 
^
As an additional consequence, as American frontline troops sense the growing disenchantment with the war they become more risk averse, not wanting to be the last casualty of the conflict. Therefore no further tunnel rat units will be created.  
ENDTEXT
TAKETECHNOLOGY
whom=South Vietnam 
technology=20
@ENDIF

;--- Once receive Vietnamization also remove Pre-Tech 3 (Tech 46)which is a prerequisite for Pacification (Tech 20) to prevent SVN from being able to research it again
@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=South Vietnam
@THEN
JUSTONCE
TAKETECHNOLOGY
whom=South Vietnam 
technology=46
@ENDIF

; ----------------------------------------
; 17. Cambodian Reinforcements
; ----------------------------------------

;--- a. CONSEQUENCES of US CAMBODIAN Invasion (TECH 33) or CAMBODIAN Incursion (Tech 47) Cambodia receives (Tech 29)
@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Cambodia
@THEN
JUSTONCE
TEXT
Cambodia mobilises it's armed forces
ENDTEXT
CREATEUNIT
unit=FANK Inf.
count=9
owner=Cambodia
veteran=no
homecity=none
locations
9,115
8,102
1,125
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Cambodia
@THEN
JUSTONCE
CREATEUNIT
unit=FANK Inf.
count=18
owner=Cambodia
veteran=no
homecity=none
RANDOMIZE
locations
30,94
21,105
20,94
14,110
9,89
8,102
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Cambodia
@THEN
JUSTONCE
CREATEUNIT
unit=105mm Art. FK
count=3
owner=Cambodia
veteran=no
homecity=none
RANDOMIZE
locations
9,115
8,102
1,125
21,105
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Cambodia
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=3
owner=Cambodia
veteran=no
homecity=none
RANDOMIZE
locations
9,115
8,102
1,125
21,105
endlocations
@ENDIF  

; ----------------------------------------
; 18. NVN Flags
; ----------------------------------------

;--- a. CHINESE AID & Sino-Soviet Tensions (TECH 95)
;--- NVA receives Chinese Aid (TECH 3) set NVA Flag 0

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
In April 1965, the PRC signed a formal agreement with Hanoi providing for the introduction of Chinese air defense, engineering, and railroad troops into North Vietnam to help maintain and expand the lines of communication within North Vietnam. 
^
At the time, Ho requested Chinese AAA units during a meeting with Mao to counter the growing U.S. American air power over North Vietnam. Intelligence sources have noted that PLA forces have begun flowing into North Vietnam to help defend the capital of Hanoi and the transportation network... 
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=On
Flag=0 
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
This movement of troops from China is not lost on the U.S. intelligence as reported in a Top Secret CIA Special Report which identified seven major PLA units in North Vietnam to include the 67th AAA Division, and an estimated 25,000 to 45,000 Chinese combat troops total. 
^
These forces are not only slated to man AAA sites but also to build and repair Vietnamese infrastructure damaged or destroyed by U.S. airstrikes.
ENDTEXT
@ENDIF

;--- Sino-Soviet relations bring about a chill in Chinese/NVN relations (Sino-Soviet Tensions - TECH 95)
;--- which cuts off PRC aid to NVN for 2 years (set NVA Flag 0 to OFF)
@IF
RECEIVEDTECHNOLOGY
technology=95
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
Sino-Soviet relations have progressively soured after the Soviets invaded Czechoslovakia in August 1968. In October, the Chinese demanded North Vietnam cut relations with Moscow, but Hanoi has refused. 
^
As a result the Chinese have begun to withdraw their aid From North Vietnam in preparation for a clash with the Soviets. 
^
The Sino-Soviet border conflict would end up being a seven-month undeclared military conflict between the Soviet Union and China at the height of the Sino-Soviet split in 1969. The most serious of these border clashes, which brought the two communist-lead countries to the brink of war, occurred in March 1969 in the vicinity of Zhenbao Island on the Ussuri River, also known as Damanskii Island in Russia. Chinese historians most commonly refer to the conflict as the Zhenbao Island incident. The conflict was finally resolved with future border demarcations.
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=0 
@ENDIF

;--- After 2 years (April 1971 (turn 74) PRC supplies begin to flow again (reset NVA Flag 0 to ON)
@IF
Turn
turn=74
@AND
RECEIVEDTECHNOLOGY
technology=95
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
After the Sino-Soviet border clashes of mid 1969 subsided, both parties agreed to talks to reduce tensions.
^ 
China's relations with the USSR remained sour after the conflict, despite the border talks. Domestically, the threat of war, caused by the border clashes, inaugurated a new stage in the Cultural Revolution; that of China's thorough militarization.
^
As a consequence, Chinese military aid to North Vietnam resumes in earnest.
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=On
Flag=0 
@ENDIF

;--- NVA Flags 1, 2 and 6 set to 'ON' on TURN #1

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=1 
@ENDIF

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=2 
@ENDIF

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=6 
@ENDIF

;--- Turn Ind Zones I, II and III FLAGS 7, 8 and 9 to ON on TURN 1

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=7 
@ENDIF

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=8 
@ENDIF

@IF
TURN
turn=11
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=9 
@ENDIF

;--- Turn HCMT Supply Truck I, II and III FLAGS 10, 11 and 12 to ON on TURNS 1, 11 and 23 respectively

@IF
TURN
turn=1
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=10 
@ENDIF

@IF
TURN
turn=11
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=11 
@ENDIF

@IF
TURN
turn=23
@THEN
Flag
Continuous
Who=North Vietnam
State=On
Flag=12 
@ENDIF

;--- Chinese intervention activated (Tech 83)
@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=13 
@ENDIF

;--- NVA Flag 18 set to 'ON' on TURN #9, i.e. December 1965 (See 23. NLF HQ Placement)
@IF
TURN
turn=10
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=18 
@ENDIF

; For NVN Flag 16 see 22. TET Offensive

;--- Phoenix Program activated (Tech 27) reduces number of VC Sapper monthly recruitment
@IF
RECEIVEDTECHNOLOGY
technology=27
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=23 
@ENDIF

;--- Set FLAG 24 which allows NVN initial deployment of extra PAVN divisions to SVN once NVN receives Soviet Aid I (tech 90) to ON and OFF if SVN invades NVN (Tech 42) (one division every 4 turns)
@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=24 
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=Off
Flag=24 
@ENDIF

;--- NVA reinforcements cut off if Sihanoukville captured OR SVN receives Cambodian Incursion (TECH 47)

@IF
CITYTAKEN
city=Sihanoukville 
attacker=South Vietnam
defender=Cambodia
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=Off
Flag=1 
@ENDIF

;--- SVN receives Cambodian Incursion (TECH 47)
@IF
RECEIVEDTECHNOLOGY
technology=47
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=Off
Flag=2 
@ENDIF

;--- NVA receives Soviet Aid I (TECH 90) 12 turns after getting Chinese Aid (Tech 3); set NVA Flag 3 to 'On'

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=North Vietnam
@THEN
JUSTONCE
Delay
Delay=12
GiveTechnology		
receiver=North Vietnam
technology=90
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=3 
@ENDIF

;--- NVA receives Soviet Aid II (TECH 91) 12 turns after getting Soviet Aid I; set NVA Flag 4 to 'On'

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
Delay
Delay=12
GiveTechnology		
receiver=North Vietnam
technology=91
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=91
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=4 
@ENDIF

;--- NVA receives Soviet Aid III (TECH 92) set NVA Flag 5 to 'On'
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=5 
@ENDIF

;--- SVN receives Haiphong Mined (TECH 78) set NVA Flag 6 to 'Off'

@IF
RECEIVEDTECHNOLOGY
technology=78
receiver=South Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=Off
Flag=6 
@ENDIF

; ----------------------------------------
; 19. NVN Industrial Zones & HCMT Trucks
; ----------------------------------------

;--- INDUSTRIAL ZONE I - Flag 7
;--- Initial placement of Zone 1
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=Ind Zone I
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
14,8
23,13
2,10
17,25
17,37
endlocations
@ENDIF

;--- If Zone 1 destroyed turn Flag 7 off
@IF
UNITKILLED
unit=Ind Zone I
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese industrial zone I!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=7 
@ENDIF

;--- Rebuild Zone 1 and return Flag 7 on (only rebuild if Chinese intervention not activated)
@IF
UNITKILLED
unit=Ind Zone I
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds industrial zone I!
ENDTEXT
CREATEUNIT
unit=Ind Zone I
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
14,8
23,13
2,10
17,25
17,37
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=7 
@ENDIF

;--- INDUSTRIAL ZONE II - Flag 8
;--- Initial placement of Zone 2
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=Ind Zone II
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
18,4
27,13
22,18
1,29
endlocations
@ENDIF

;--- If Zone 2 destroyed turn Flag 8 off
@IF
UNITKILLED
unit=Ind Zone II
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese industrial zone II!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=8 
@ENDIF

;--- Rebuild Zone 2 and turn Flag 8 on (only rebuild if Chinese intervention not activated)
@IF
UNITKILLED
unit=Ind Zone II
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds industrial zone II!
ENDTEXT
CREATEUNIT
unit=Ind Zone II
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
18,4
27,13
22,18
1,29
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=8 
@ENDIF

;--- INDUSTRIAL ZONE III - Flag 9
;--- Initial placement of Zone 3
@IF
TURN
turn=11
@THEN
JUSTONCE
CREATEUNIT
unit=Ind Zone III
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
32,12
27,13
18,16
13,13
endlocations
@ENDIF

;--- If Zone 3 destroyed turn Flag 9 off
@IF
UNITKILLED
unit=Ind Zone III
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese industrial zone III!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=9 
@ENDIF

;--- Rebuild Zone 3 and turn Flag 9 on (only rebuild if Chinese intervention not activated)
@IF
UNITKILLED
unit=Ind Zone III
attacker=South Vietnam
defender=North Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds industrial zone III!
ENDTEXT
CREATEUNIT
unit=Ind Zone III
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
32,12
27,13
18,16
13,13
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=9 
@ENDIF

;--- HCMT Truck I - Flag 10
;--- Initial placement of HCMT Truck I
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=HCMT Truck I
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
29,79
10,44
endlocations
@ENDIF

;--- If HCMT Truck I destroyed turn Flag 10 off
@IF
UNITKILLED
unit=HCMT Truck I
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese HCMT Truck ONE!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=10 
@ENDIF

;--- Rebuild HCMT Truck I and turn Flag 10 on
@IF
UNITKILLED
unit=HCMT Truck I
attacker=South Vietnam
defender=North Vietnam
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds HCMT Truck ONE!
ENDTEXT
CREATEUNIT
unit=HCMT Truck I
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
29,79
10,44
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=10 
@ENDIF

;--- HCMT Truck II - Flag 11
;--- Initial placement of HCMT Truck II
@IF
TURN
turn=11
@THEN
JUSTONCE
CREATEUNIT
unit=HCMT Truck II
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
25,69
29,79
21,59
15,51
endlocations
@ENDIF

;--- If HCMT Truck II destroyed turn Flag 11 off
@IF
UNITKILLED
unit=HCMT Truck II
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese HCMT Truck TWO!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=11 
@ENDIF

;--- Rebuild HCMT Truck II and return Flag 11 on
@IF
UNITKILLED
unit=HCMT Truck II
attacker=South Vietnam
defender=North Vietnam
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds HCMT Truck TWO!
ENDTEXT
CREATEUNIT
unit=HCMT Truck II
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
25,69
29,79
21,59
15,51
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=11 
@ENDIF

;--- HCMT Truck III - Flag 12
;--- Initial placement of HCMT Truck III
@IF
TURN
turn=23
@THEN
JUSTONCE
CREATEUNIT
unit=HCMT Truck III
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,79
25,69
21,59
15,59
endlocations
@ENDIF

;--- If HCMT Truck III destroyed turn Flag 12 off
@IF
UNITKILLED
unit=HCMT Truck III
attacker=South Vietnam
defender=North Vietnam
@THEN
TEXT
US bombing campaign damages North Vietnamese HCMT Truck THREE!
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=Off
Flag=12 
@ENDIF

;--- Rebuild HCMT Truck III and return Flag 12 on
@IF
UNITKILLED
unit=HCMT Truck III
attacker=South Vietnam
defender=North Vietnam
@THEN
Delay
Delay=4
TEXT
North Vietnamese rebuilds HCMT Truck THREE!
ENDTEXT
CREATEUNIT
unit=HCMT Truck III
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,79
25,69
21,59
15,59
endlocations
Flag
Continuous
Who=North Vietnam
State=On
Flag=12 
@ENDIF

; ----------------------------------------
; 20. NVN Reinforcements
; ----------------------------------------

;--- a. NVN opening deployment in South Vietnam
;--- I CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

;--- II CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
48,102
51,109
43,115
endlocations
@ENDIF

;--- III CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

;--- IV CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

;--- b_1. NVN deployment of 304th, 2nd, 1st, 308th, 320th and 324th PAVN divisions
;--- 304th: Highlands

@IF
Turn
turn=6
@THEN
JUSTONCE
TEXT
North Vietnam deploys the 304th PAVN Division to South Vietnam!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=7
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
45,93
52,94
48,102
51,109
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
45,93
52,94
48,102
51,109
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
45,93
52,94
48,102
51,109
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
45,93
52,94
48,102
51,109
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
45,93
52,94
48,102
51,109
endlocations
@ENDIF

;--- 2nd: Quang Tri Province
@IF
Turn
turn=8
@THEN
JUSTONCE
TEXT
North Vietnam deploys the 2nd PAVN Division to South Vietnam!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=7
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
Turn
turn=8
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
Turn
turn=8
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
Turn
turn=8
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
Turn
turn=8
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

;--- 1st: Saigon District
@IF
Turn
turn=10
@THEN
JUSTONCE
TEXT
North Vietnam deploys the 1st PAVN Division to South Vietnam!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
endlocations
@ENDIF

@IF
Turn
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=2
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
endlocations
@ENDIF

@IF
Turn
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
endlocations
@ENDIF

@IF
Turn
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
endlocations
@ENDIF

@IF
Turn
turn=10
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
endlocations
@ENDIF

;--- 308th and 320th: Pleiku Front
@IF
Turn
turn=12
@THEN
JUSTONCE
TEXT
North Vietnam deploys the 308th and 320th PAVN Divisions to South Vietnam!
ENDTEXT
CREATEUNIT
unit=NVA Garrison
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

@IF
Turn
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=11
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

@IF
Turn
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=3
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

@IF
Turn
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

@IF
Turn
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

@IF
Turn
turn=12
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
38,40
38,100
45,93
48,102
52,94
endlocations
@ENDIF

;--- 324th: Cambodia
@IF
Turn
turn=15
@THEN
JUSTONCE
TEXT
North Vietnam deploys the 324th PAVN Division to South Vietnam!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=7
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
15,123
20,124
15,135
endlocations
@ENDIF

@IF
Turn
turn=15
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
15,123
20,124
15,135
endlocations
@ENDIF

@IF
Turn
turn=15
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
15,123
20,124
15,135
endlocations
@ENDIF

@IF
Turn
turn=15
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
15,123
20,124
15,135
endlocations
@ENDIF

@IF
Turn
turn=15
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
15,123
20,124
15,135
endlocations
@ENDIF

;--- b_2a. Other PAVN divisions that appear once Soviet Aid I (Tech 90) is received and SVN hasn't invaded NVN or occupied the NVA sanctuaries
@IF
CheckFlag
Who=North Vietnam
Flag=24	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Regular
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
31,69
35,89
35,105
31,107
17,113
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=24	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Elite
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
31,69
35,89
35,105
31,107
17,113
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=24	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
31,69
35,89
35,105
31,107
17,113
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=24	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
31,69
35,89
35,105
31,107
17,113
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=24	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
31,69
35,89
35,105
31,107
17,113
endlocations
@ENDIF

;--- b_2b. Other PAVN divisions that appear if Johnson re-elected and implements Westmoreland escalation
@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Regular
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
11,33
19,41
26,50
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Elite
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
11,33
19,41
26,50
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
11,33
19,41
26,50
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
11,33
19,41
26,50
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=South Vietnam
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
11,33
19,41
26,50
endlocations
@ENDIF

;--- Receive NVA 122mm Art. reinforcement for every killed Firebase unit
@IF
UNITKILLED
unit=Firebase
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
NVA 122mm Art. unit after overrunnning Firebase!
ENDTEXT
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
27,57
28,56
28,60
26,58
endlocations
@ENDIF

;--- b_3. Receive NVA Elite, Sapper and 122mm Art. reinforcement if Khe Sanh unoccupied by SVN/US player prior to Vietnamization (SVN FLAG 0)
@IF
RANDOMTURN
denominator=1
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF 
@THEN
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
locations
28,58
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
locations
28,58
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
28,58
endlocations
@ENDIF

;--- b_4. Receive NVA Regular, Sapper and 122mm Art. reinforcements as long as VC "War Zone C" Base Area tile is not occupied by SVN/US

@IF
RANDOMTURN
denominator=3
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF 
@THEN
CREATEUNIT
unit=NVA Regular
count=2
owner=North Vietnam
veteran=yes
homecity=none
locations
28,58
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=yes
homecity=none
locations
28,58
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=6
@AND
CheckFlag
Who=South Vietnam
Flag=0	
State=OFF
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
28,58
endlocations
@ENDIF

;--- b_5. Mini Ho Chi Minh Offensive (can only occur if specific NVA sanctauries aren't controlled by SVN)

@IF
Turn
turn=57
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=14
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
23,111
35,89
26,108
35,95
31,107
35,105
endlocations
@ENDIF

@IF
Turn
turn=57
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=2
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
23,111
35,89
26,108
35,95
31,107
35,105
endlocations
@ENDIF

@IF
Turn
turn=57
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
count=2
owner=North Vietnam
veteran=yes
homecity=none
RANDOMIZE
locations
23,111
35,89
26,108
35,95
31,107
35,105
endlocations
@ENDIF

@IF
Turn
turn=57
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
23,111
35,89
26,108
35,95
31,107
35,105
endlocations
@ENDIF

@IF
Turn
turn=57
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
23,111
35,89
26,108
35,95
31,107
35,105
endlocations
@ENDIF

;--- c. NVA receives Chinese Aid (TECH 3) - (FLAG 0)
;--- China deploys initial AA divisions
@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=4
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@THEN
JUSTONCE
CREATEUNIT
unit=85mm AA
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
27,13
22,18
23,13
18,16
17,25
16,32
endlocations
@ENDIF

;--- Chinese supplies start to flow
@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=559th Group
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=85mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
27,13
22,18
23,13
18,16
17,25
16,32
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=0	
State=ON 
@AND
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=MIG-19 Farmer
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
2,10
8,4
12,2
28,2
endlocations
@ENDIF

;--- d_1. NVA reinforcements arrive through Sihanoukville

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=2
State=On
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=NVA Regular
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,123
19,121
17,113
13,119
17,119
4,126
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=2
State=On
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,123
19,121
17,113
13,119
17,119
4,126
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=2
State=On
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,123
19,121
17,113
13,119
17,119
4,126
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=2
State=On
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,123
19,121
17,113
13,119
17,119
4,126
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=2
State=On
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
7,123
19,121
17,113
13,119
17,119
4,126
endlocations
@ENDIF

;------------ START TEST TEST TEST ------------
;--- d_2. Sihanoukville NVA reinforcements rerouted to Dong Hoi if either Sihanoukville captured or SVN launches Cambodian Incursion 

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=1
State=Off
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=NVA Regular
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=1
State=Off
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=1
State=Off
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=1
State=Off
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x6
Count=1
State=Off
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

;------------ END TEST TEST TEST ------------


;--- e. NVA receives Soviet Aid I (TECH 90) - (FLAG 3)

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
On 17 November 1964, the Soviet Politburo decided to send support to North Vietnam. This aid will include Soviet military personnel to serve as advisers to the Democratic Peoples' Republic of Vietnam (DRVN).
^
The CIA estimates the USSR plans on shipping to Vietnam from Vladivostok large amounts of military equipment, including fighter aircraft, surface-to-air missiles, as well as ammunition and small arms. 
^
The USSR has warned the US not to attack Soviet ships in Haiphong harbor. In addition, Soviet logistic operators are said to be working on reestablishing the rail link through China and across North Vietnam's northern border.
^
Intelligence reports indicate that a large number of Vietnam People's Air Force (VPAF) pilots are being sent to the Soviet Union for advanced fighter training potentially to come back to engage US fighters.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=SA-2 Guideline
owner=North Vietnam
veteran=no
homecity=none
locations
19,11
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=SAM Missile
count=6
owner=North Vietnam
veteran=no
homecity=none
locations
19,11
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam 
@AND
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=SA-2 Guideline
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
13,13
18,4
27,13
19,21
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@AND
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=SAM Missile
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
13,13
18,4
27,13
19,21
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@AND
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=SA-2 Guideline
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
22,18
17,37
14,8
17,25
11,33
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@AND
RANDOMTURN
denominator=12
@THEN
CREATEUNIT
unit=SAM Missile
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,11
22,18
17,37
14,8
17,25
11,33
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=90
receiver=North Vietnam
@AND
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=MIG-17 Fresco
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
28,2
endlocations
@ENDIF

;--- f. NVA receives Soviet Aid II (TECH 91) - (FLAG 4)

@IF
RECEIVEDTECHNOLOGY
technology=91
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing.
^
The Soviet Politburo has decided to send increased support to North Vietnam to aid in its revolutionary struggle. The CIA estimates the USSR plans on shipping the more advanced Soviet MIG-21 fighter aircraft (code name Fishbed), along with tanks and heavy artillery. 
^
The Soviets are said to have refused North Vietnam's repeated requests for the Komar-class anti-ship-missile firing patrol boats. While the Soviets are quite content to have their supplied weapons shooting down US fighters over North Vietnam, having a Soviet supplied PT boat sinking a US warship with a missile in international waters is something they obviously want to avoid. 
^
They apparently fear this would produce a very undesirable and dangerous escalation between the two Cold War superpowers.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x50
Count=2
State=On
@AND
RANDOMTURN
denominator=7
@THEN
CREATEUNIT
unit=T-34/85
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x50
Count=2
State=On
@AND
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=PT-76
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x50
Count=2
State=On
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=152mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
21,59
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Mask=0x50
Count=2
State=On
@AND 
RANDOMTURN
denominator=9
@THEN
CREATEUNIT
unit=MIG-21 Fishbed
owner=North Vietnam
veteran=no
homecity=none
locations
27,13
endlocations
@ENDIF

;--- g. NVA receives Soviet Aid III (TECH 92)
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=152mm Art.
count=5
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PT-76
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Type 63
count=10
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=T-55
count=10
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=BM-21 Grad
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=ZSU-57
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
endlocations
@ENDIF

;--- h. NVA receives Soviet Aid IV (TECH 99)

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=152mm Art.
count=8
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PT-76
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Type 63
count=15
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=T-55
count=15
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=BM-21 Grad
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=ZSU-57
count=5
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,50
31,65
36,74
34,80
35,89
26,108
17,113
endlocations
@ENDIF

;--- i. NVA Industrial Zones Reinforcements
;--- Ind Zone I: NVA receives extra troops  - (FLAG 7)

@IF
CheckFlag
Who=North Vietnam
Flag=7	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements industrial zone I!
ENDTEXT
CREATEUNIT
unit=NVA Elite
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
36,74
35,89
34,100
26,108
26,50
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=7	
State=ON 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=57mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,69
34,80
35,95
35,105
26,108
26,50
endlocations
@ENDIF

;--- Ind Zone II: NVA receives extra troops  - (FLAG 8)

@IF
CheckFlag
Who=North Vietnam
Flag=8	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements industrial zone II!
ENDTEXT
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,69
34,80
35,95
35,105
31,107
26,50
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=8	
State=ON 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
36,74
35,89
34,100
23,111
26,50
endlocations
@ENDIF

;--- Ind Zone III: NVA receives extra troops  - (FLAG 9)

@IF
CheckFlag
Who=North Vietnam
Flag=9	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements industrial zone III!
ENDTEXT
CREATEUNIT
unit=NVA Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
36,74
35,89
34,100
23,111
26,50
endlocations
@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=9	
State=ON 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,69
34,80
35,95
35,105
26,108
26,50
endlocations
@ENDIF

;--- HCMT Truck I: NVA receives extra troops  - (FLAG 10)

@IF
CheckFlag
Who=North Vietnam
Flag=10	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements HCMT Truck I!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,65
36,74
35,89
34,100
26,108
26,50
endlocations
@ENDIF

;--- HCMT Truck II: NVA receives extra troops  - (FLAG 11)
;--- NVN FLAG 11 turned ON on turn 11 (January, 1966)

@IF
CheckFlag
Who=North Vietnam
Flag=11	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements HCMT Truck II!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
31,69
34,80
35,95
35,105
31,107
19,41
endlocations
@ENDIF

;--- HCMT Truck III: NVA receives extra troops  - (FLAG 12)
;--- NVN FLAG 12 turned ON on turn 23 (January, 1967)

@IF
CheckFlag
Who=North Vietnam
Flag=12	
State=ON 
@AND
RANDOMTURN
denominator=1
@THEN
TEXT
NVA reinforcements HCMT Truck III!
ENDTEXT
CREATEUNIT
unit=NVA Regular
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,89
34,100
35,105
26,108
23,111
11,33
endlocations
@ENDIF

; ----------------------------------------
; 21. NVN MoveTo Commands
; ----------------------------------------

;--- NVN-China move to commands
;--- Yen Bai*
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
7,3,9,3,9,7,7,7
moveto
13,13
numbertomove=ALL
@ENDIF

;--- Tuyen Quang*
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
11,1,15,1,15,5,11,5
moveto
19,11
numbertomove=ALL
@ENDIF

;--- Hanoi*
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
17,9,21,9,21,13,17,13
moveto
16,32
numbertomove=ALL
@ENDIF

;--- Lang Son*
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
26,0,30,0,30,4,26,4
moveto
27,13
numbertomove=ALL
@ENDIF

;--- East of Ha Long
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
34,4,40,4,40,8,34,8
moveto
27,13
numbertomove=ALL
@ENDIF

;--- Son La
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
0,8,4,8,4,14,0,14
moveto
12,16
numbertomove=ALL
@ENDIF

;--- Ky Son
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
1,27,3,27,3,31,1,31
moveto
11,33
numbertomove=ALL
@ENDIF

;--- Dien Chau
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
14,30,18,30,18,34,14,34
moveto
15,51
numbertomove=ALL
@ENDIF

;--- North of Can Cuong
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
9,19,11,19,11,29,9,29
moveto
17,37
numbertomove=ALL
@ENDIF

;--- NVN feeding DMZ
;--- Ninh Binh (deactivate if Chinese intervention activated (FLAG 13))
@IF
TURNINTERVAL
interval=1
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
16,20,20,20,20,26,16,26
moveto
17,37
numbertomove=ALL
@ENDIF

;--- Vinh (deactivate if Chinese intervention activated (FLAG 13))
@IF
TURNINTERVAL
interval=1
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
15,35,19,35,19,39,15,39
moveto
26,50
numbertomove=ALL
@ENDIF

;--- DMZ Zone - Dong Hoi
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
25,49,29,49,29,55,25,55
moveto
30,58
numbertomove=ALL
@ENDIF

;--- DMZ Zone - Khe Sanh
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
27,57,29,57,29,61,27,61
moveto
32,58
numbertomove=ALL
@ENDIF

;--- HCMT Trail - feeding Laos
;--- Hoa Binh (deactivate if Chinese intervention activated (FLAG 13))
@IF
TURNINTERVAL
interval=1
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
10,12,14,12,14,18,10,18
moveto
11,33
numbertomove=ALL
@ENDIF

;--- Can Cuong (deactivate if Chinese intervention activated (FLAG 13))
@IF
TURNINTERVAL
interval=1
@AND
CheckFlag
Who=North Vietnam
Flag=13	
State=OFF 
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
9,31,13,31,13,35,9,35
moveto
10,60
numbertomove=ALL
@ENDIF

;--- South-west of Mu Gia Pass
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
13,49,17,49,17,53,13,53
moveto
21,59
numbertomove=ALL
@ENDIF

;--- Tchepone
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
20,58,24,58,24,62,20,62
moveto
28,58
numbertomove=ALL
@ENDIF

;--- Salavan
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
28,76,30,76,30,80,28,80
moveto
40,80
numbertomove=ALL
@ENDIF

;--- Attapu
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
23,67,27,67,27,71,23,71
moveto
34,64
numbertomove=ALL
@ENDIF

;--- Savannakhet
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
10,56,12,56,12,62,10,62
moveto
18,68
numbertomove=ALL
@ENDIF

;--- North of Pakxé
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
17,67,21,67,21,71,17,71
moveto
22,80
numbertomove=ALL
@ENDIF

;--- South of Pakxé
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
20,76,24,76,24,80,20,80
moveto
29,89
numbertomove=ALL
@ENDIF

;--- Laos-Cambodian Border
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
19,83,23,83,23,87,19,87
moveto
27,95
numbertomove=ALL
@ENDIF

;--- North of Lumphat
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
27,87,31,87,31,91,27,91
moveto
38,90
numbertomove=ALL
@ENDIF

;--- North-West of Lumphat
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
25,89,25,91,29,95,25,95
moveto
27,107
numbertomove=ALL
@ENDIF

;--- HCMT move to commands
;--- Laotian Sanctuaries - HCM Trail - A Shau Valley
;--- (31,65);(31,69)
;--- (31,65)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
28,64,32,64,32,66,28,66
moveto
34,64
numbertomove=ALL
@ENDIF

;--- (31,69)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
30,68,34,68,34,72,30,72
moveto
36,70
numbertomove=ALL
@ENDIF

;--- Laotian Sanctuaries - HCM Trail - Dac To
;--- (36,74);(34,80)
;--- (36,74)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
34,72,38,72,38,76,34,76
moveto
41,73
numbertomove=ALL
@ENDIF

;--- (34,80)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
32,78,36,78,36,82,32,82
moveto
40,80
numbertomove=ALL
@ENDIF

;--- Cambodian Sanctuaries - HCM Trail - Ia Drang Valley
;--- (35,89);(35,95)
;--- (35,89)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
33,87,37,87,37,91,33,91
moveto
42,90
numbertomove=ALL
@ENDIF

;--- (35,95)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
34,92,38,92,38,96,34,96
moveto
42,96
numbertomove=ALL
@ENDIF

;--- Cambodian Sanctuaries - HCM Trail - Buon Ma Thuot
;--- (34,100);(35,105)
;--- (34,100)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
33,99,37,99,37,103,33,103
moveto
42,102
numbertomove=ALL
@ENDIF

;--- (35,105)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
34,104,38,104,38,108,34,108
moveto
38,110
numbertomove=ALL
@ENDIF

;--- Cambodian Sanctuaries - HCM Trail - An Loc
;--- (31,107);(26,108);(23,111)
;--- (31,107)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
29,107,33,107,33,111,29,111
moveto
30,114
numbertomove=ALL
@ENDIF

;--- (23,111) and (26,108)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
22,108,28,108,28,112,22,112
moveto
26,114
numbertomove=ALL
@ENDIF

;--- Cambodian Sanctuaries - Sihanoukville Trail 
;--- (17,113);(17,119);(19,121);(13,119);(7,123);(4,126)
;--- (17,113)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
16,112,20,112,20,116,16,116
moveto
22,118
numbertomove=ALL
@ENDIF

;--- (17,119) and (19,121)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
17,119,21,119,21,125,17,125
moveto
20,130
numbertomove=ALL
@ENDIF

;--- (13,119)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
12,118,16,118,16,122,12,122
moveto
16,128
numbertomove=ALL
@ENDIF

;--- (7,123)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
6,122,8,122,8,126,6,126
moveto
9,127
numbertomove=ALL
@ENDIF

;--- (4,126)
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
3,125,5,125,5,127,3,127
moveto
6,130
numbertomove=ALL
@ENDIF

; ----------------------------------------
; 22. NLF Reinforcements & Ambush
; ----------------------------------------

;--- VC opening deployment in South Vietnam
;--- I CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,66
44,74
endlocations
@ENDIF

;--- II CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
51,105
47,85
52,94
45,93
48,102
51,109
43,115
46,92
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
51,105
47,85
52,94
45,93
48,102
51,109
43,115
46,92
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
51,105
47,85
52,94
45,93
48,102
51,109
43,115
46,92
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
45,93
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
45,93
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
45,93
48,102
51,109
43,115
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
47,85
52,94
48,102
45,93
51,109
43,115
endlocations
@ENDIF

;--- III CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,110
35,117
36,126
26,120
19,115
endlocations
@ENDIF

;--- IV CORPS Sector
@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Local
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=3
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
20,124
27,133
24,136
15,135
11,147
8,138
9,127
15,123
endlocations
@ENDIF

;--- VC Reinforcements
;--- Basic VC Local reinforcements
@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,69
38,66
44,74
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
38,100
43,115
36,84
45,93
48,102
51,109
52,94
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
36,126
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
15,123
15,135
24,136
27,133
8,138
endlocations
@ENDIF

; As long as one of the eight primary VC Base Areas exists and the tiles aren't occupied
; Seven Mountains (9,127), U Minh Forest (11,147), Parrot's Beak (20,124), Iron Triangle (26,120), War Zone D (35,117), An Lao Valley (47,85), Ia Drang Valley (38,90), A Shau Valley (34,64)
@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
38,90
9,127
11,147
26,120
35,117
47,85
20,124
34,64
endlocations
@ENDIF

;--- As long as NVN doesn't launch TET receive 1 VC Local per turn
@IF
CheckFlag
Who=North Vietnam
Flag=17	 
State=Off
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
44,74
38,90
43,115
48,102
19,115
32,110
36,126
11,147
15,135
24,136
27,133
endlocations
@ENDIF

;--- As long as SVN doesn't develop Pacification (TECH 20) receive 1 VC Local per turn
@IF
CheckFlag
Who=North Vietnam
Flag=21	
State=OFF 
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
46,76
51,87
49,93
50,100
39,125
37,115
27,117
13,137
17,125
21,139
8,146
endlocations
@ENDIF

;--- Basic VC Main Force reinforcements
@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,69
38,66
44,74
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=VC Main Force
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
38,100
43,115
47,85
45,93
48,102
51,109
52,94
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
19,115
26,120
32,110
35,117
36,126
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=VC Main Force
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
11,147
15,123
15,135
24,136
27,133
8,138
endlocations
@ENDIF

; As long as one of the six primary VC Base Areas exists and the tiles aren't occupied
; Seven Mountains (9,127), U Minh Forest (11,147), Parrot's Beak (20,124), Iron Triangle (26,120), War Zone D (35,117), An Lao Valley (47,85), Ia Drang Valley (38,90), A Shau Valley (34,64)
@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Main Force
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,117
47,85
20,124
34,64
38,90
9,127
11,147
26,120
endlocations
@ENDIF

;--- As long as SVN doesn't develop Battle Group II (TECH 64) receive 1 VC Main Force per turn
@IF
CheckFlag
Who=North Vietnam
Flag=22	
State=OFF 
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Main Force
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
41,63
54,84
55,89
56,102
49,119
36,126
27,133
24,136
8,138
endlocations
@ENDIF

;--- If SVN develops Invade NVN (TECH 42) receive 1 extra VC Main Force per turn
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Main Force
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
17,137
23,123
29,119
34,124
33,117
44,112
51,113
45,97
46,78
41,69
endlocations
@ENDIF

;--- Basic VC Sapper reinforcements
@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Sapper
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
43,115
47,85
36,126
51,87
26,120
11,147
9,127
27,133
15,135
endlocations
@ENDIF

;--- OPTION 1: As long as SVN doesn't develop Phoenix Program (TECH 27) receive 2 VC Sapper every 2 turns
;CheckFlag
;Who=North Vietnam
;Flag=23	
;State=OFF 
;--- OR OPTION 2: As long as NVN Flag 21 (SVN killed 3 Base Areas after pacification) and NVN FLAG 23 (SVN develops Phoenix Program) OFF then receive 2 VC Sapper every 2 turns
;CheckFlag
;Who=North Vietnam
;Mask=0xA00000
;Count=2
;State=OFF

@IF
CheckFlag
Who=North Vietnam
Mask=0xA00000
Count=2
State=OFF
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Sapper
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
26,136
14,144
38,120
28,118
38,66
52,106
47,105
49,95
40,96
45,77
endlocations
@ENDIF

;--- If SVN develops Invade NVN (TECH 42) receive 1 extra VC Sapper every turn
@IF
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Sapper
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,64
35,69
38,90
38,90
38,100
32,110
21,113
13,127
13,133
endlocations
@ENDIF

;--- Special VC Main Base Area Reinforcements
;--- U Minh Forest, Iron Triangle, An Lao and A Shau Valley
@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
11,147
26,120
47,85
34,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
11,147
26,120
47,85
34,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=VC Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
11,147
26,120
47,85
34,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
11,147
26,120
47,85
34,64
endlocations
@ENDIF

;--- Special VC Secondary Base Area Reinforcements
;--- Central Highlands
@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=VC Local
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
43,115
51,109
52,94
51,87
44,74
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
43,115
51,109
52,94
51,87
44,74
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=VC Sapper
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
43,115
51,109
52,94
51,87
44,74
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
43,115
51,109
52,94
51,87
44,74
endlocations
@ENDIF

;--- Receive VC Mortar reinforcements for every two killed ARVN Airborne, Marine or Ranger units
@IF
UNITKILLED
unit=ARVN Airborne
attacker=North Vietnam
defender=South Vietnam
@THEN
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,69
47,85
48,102
36,84
35,117
26,120
11,147
38,0
38,0
38,0
38,0
38,0
38,0
endlocations
@ENDIF

@IF
UNITKILLED
unit=ARVN Marines
attacker=North Vietnam
defender=South Vietnam
@THEN
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
9,127
20,124
36,126
45,93
19,115
38,66
44,74
38,0
38,0
38,0
38,0
38,0
38,0
endlocations
@ENDIF

;--- No longer receive VC Mortar for killing Rangers after TET 
@IF
UNITKILLED
unit=ARVN Rangers
attacker=North Vietnam
defender=South Vietnam
@AND
CheckFlag
Who=North Vietnam
Flag=16	
State=OFF 
@THEN
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
15,135
52,94
38,90
8,138
32,110
51,109
34,64
38,0
38,0
38,0
38,0
38,0
38,0
endlocations
@ENDIF

;--- If NVA captures any SVN city get one VC Main Force unit per city
@IF
CITYTAKEN
city=AnyCity
attacker=North Vietnam
defender=South Vietnam
@THEN
CREATEUNIT
unit=VC Main Force
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
52,94
51,109
43,115
36,126
15,135
38,66
endlocations
@ENDIF

;--- If kill SVN Hamlet get VC Main Force unit and Gold
@IF
UNITKILLED
unit=Hamlet
attacker=North Vietnam
defender=South Vietnam
@THEN
TEXT
A strategic hamlet has been overrun by enemy forces. As a result, new recruits have been drafted into the ranks of the NLF and the South Vietnamese government has lost a source of taxation. 
ENDTEXT
CREATEUNIT
unit=VC Main Force
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
40,70
47,77
51,93
43,109
50,112
30,126
31,111
18,126
15,135
13,129
endlocations
CHANGEMONEY
receiver=South Vietnam
amount=-20
@ENDIF

;--- Ambush Placements
;--- Group A
@IF
TURNINTERVAL
interval=2
@THEN
CREATEUNIT
unit=Ambush
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
41,63
43,69
46,80
48,118
33,113
14,130
endlocations
@ENDIF

;--- Group B
@IF
TURNINTERVAL
interval=2
@THEN
CREATEUNIT
unit=Ambush
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,62
41,95
41,113
37,123
29,117
13,137
endlocations
@ENDIF

;--- Group C
;--- As long as SVN doesn't develop Pacification (TECH 20) receive 1 Ambush
@IF
CheckFlag
Who=North Vietnam
Flag=21	
State=OFF 
@AND
TURNINTERVAL
interval=2
@THEN
CREATEUNIT
unit=Ambush
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
17,137
18,124
29,127
27,111
51,99
37,65
endlocations
@ENDIF

;--- Group D
;--- As long as SVN doesn't develop Phoenix Program (TECH 27) receive 1 Ambush
@IF
CheckFlag
Who=North Vietnam
Flag=23	
State=OFF 
@AND
TURNINTERVAL
interval=2
@THEN
CREATEUNIT
unit=Ambush
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,59
47,77
52,88
26,118
13,145
27,131
endlocations
@ENDIF

; ----------------------------------------
; 23. NLF HQ Placement 
; ----------------------------------------

;--- Start generating random NLF HQs as long as NVN FLAG 18 is ON
;--- II corps Area
@IF
CheckFlag
Who=North Vietnam
Flag=18	 
State=On
@AND
RANDOMTURN
denominator=9
@THEN
TEXT
South Vietnamese intelligence officers have detected the presence of a new 'NLF HQ' unit in II CORPS.
^
As such, they recommend you carry out vigorous search missions in the area to try to locate and destroy the enemy command unit.
^
As you may recall, the destruction of 4 NLF HQ units is one of the prerequisites for broadening the war. 
ENDTEXT
CREATEUNIT
unit=NLF HQ
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
50,106
36,84
43,115
49,95
47,97
38,100
45,79
endlocations
@ENDIF

;--- III corps Area
@IF
CheckFlag
Who=North Vietnam
Flag=18 
State=On
@AND
RANDOMTURN
denominator=12
@THEN
TEXT
South Vietnamese intelligence officers have detected the presence of a new 'NLF HQ' unit in III CORPS.
^
As such, they recommend you carry out vigorous search missions in the area to try to locate and destroy the enemy command unit.
^
As you may recall, the destruction of 4 NLF HQ units is one of the prerequisites for broadening the war.
ENDTEXT
CREATEUNIT
unit=NLF HQ
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
35,117
26,120
19,115
32,110
30,130
endlocations
@ENDIF

;--- IV corps Area
@IF
CheckFlag
Who=North Vietnam
Flag=18 
State=On
@AND
RANDOMTURN
denominator=10
@THEN
TEXT
South Vietnamese intelligence officers have detected the presence of a new 'NLF HQ' unit in IV CORPS.
^
As such, they recommend you carry out vigorous search missions in the area to try to locate and destroy the enemy command unit.
^
As you may recall, the destruction of 4 NLF HQ units is one of the prerequisites for broadening the war.
ENDTEXT
CREATEUNIT
unit=NLF HQ
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
15,123
27,133
24,136
15,135
11,147
13,135
endlocations
@ENDIF

;--- On March 1967 (turn 25) set FLAG 18 to OFF which stops further creation of NLF HQs
@IF
TURN
turn=25
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=Off
Flag=18 
@ENDIF

; ----------------------------------------
; 24. TET Offensive (1968)
; ----------------------------------------

;--- a. PRE-CONDITON I
;--- If turn 26 (April 1967) check to see if SVN as either invaded NVN (Flag 1) OR captured Attapu, Tchepone, PHNOM PENH ** and Sihanoukville  (Flag 19)
;--- If yes turn Flag 20 ON and give US Escalated War advance (Tech 74) to NVN which leads to LBJ re-election 
@IF
TURN
turn=26
@AND
CheckFlag
Who=South Vietnam
Mask=0x80002
Count=1
State=On
@THEN
JUSTONCE
TEXT
US has invaded Cambodia/Laos or North Vietnam
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=20
GiveTechnology		
receiver=North Vietnam
technology=74 
@ENDIF

;--- b. PRE-CONDITON II
;--- IF turn 26 and SVN Flag 20 Off then set FLAG for NVN General Offensive & Uprising which leads to Nixon 1968 election victory
@IF
TURN
turn=26
@AND
CheckFlag
Who=South Vietnam
Flag=20
State=Off
@THEN
JUSTONCE
TEXT
US hasn't invaded Cambodia/Laos or North Vietnam
ENDTEXT
Flag
Continuous
Who=North Vietnam
State=On
Flag=16
@ENDIF

;--- If FLAG 16 ON then give NVN General Offensive & Uprising (Tech 51) 

;@IF
;CheckFlag
;Who=North Vietnam
;Flag=16	 
;State=On
;@AND
;RANDOMTURN
;denominator=3
;@THEN
;JUSTONCE
;TEXT
;NVN receives General Offensive & Uprising tech ONE
;ENDTEXT
;Flag
;Continuous
;Who=North Vietnam
;State=On
;Flag=17
;@ENDIF

@IF
CheckFlag
Who=North Vietnam
Flag=16	 
State=On
@THEN
JUSTONCE
Delay
Delay=6
TEXT
NVN receives General Offensive and Uprising tech
ENDTEXT
GiveTechnology		
receiver=North Vietnam
technology=51
@ENDIF

;--- Launch PRE-TET NVA Offensive after receiving General Offensive & Uprising (Tech 51) received 

@IF
RECEIVEDTECHNOLOGY
technology=51
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=12
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,80
35,89
35,95
34,100
35,105
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=51
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=4
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,80
35,89
35,95
34,100
35,105
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=51
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,80
35,89
35,95
34,100
35,105
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=51
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
34,80
35,89
35,95
34,100
35,105
endlocations
@ENDIF

;--- TET Offensive launched up to 5 turns after receiving General Offensive & Uprising (Tech 51) received 

@IF
RECEIVEDTECHNOLOGY
technology=51
receiver=North Vietnam
@AND
RANDOMTURN
denominator=5
@THEN
JUSTONCE
GiveTechnology		
receiver=North Vietnam
technology=6
@ENDIF

;--- c. TET Offensive VC attacks (total VC Main Force = 42; VC Sapper = 14; VC Mortar = 10)
; Front I
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
TEXT
Saigon Post - North Vietnamese and NLF forces launch countrywide offensive!
^
At 3 o'clock this morning, North Vietnamese and Vietcong forces have launched a wave of simultaneous attacks on South Vietnamese and American forces in major cities, towns and military bases throughout South Vietnam. 
^
The fighting, the heaviest and most sustained of the Vietnam War, to date, has coincided with the Lunar New Year, or Tet, and therefore is being called the Tet offensive. 
^
The daring of the Tet attackers has extended into the heart of Saigon and, most startling, into the very confines of the American Embassy. 
^
Hanoi radio said the aim of the offensive is to overthrow the South Vietnamese Government of President Nguyen Van Thieu.
ENDTEXT
CREATEUNIT
unit=VC Main Force
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
35,59
38,64
46,68
42,70
47,75
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Sapper
count=2
owner=North Vietnam
veteran=yes
homecity=none
locations
35,59
38,64
46,68
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
count=2
owner=North Vietnam
veteran=no
homecity=none
locations
38,64
42,70
47,75
endlocations
@ENDIF

; Front II
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
count=6
owner=North Vietnam
veteran=no
homecity=none
locations
53,91
44,100
50,80
39,85
41,93
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Sapper
count=2
owner=North Vietnam
veteran=yes
homecity=none
locations
53,91
44,100
39,85
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
locations
53,91
50,80
41,93
endlocations
@ENDIF

; Front III
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
count=6
owner=North Vietnam
veteran=no
homecity=none
locations
54,106
52,112
47,115
55,101
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Sapper
count=3
owner=North Vietnam
veteran=yes
homecity=none
locations
54,106
52,112
47,115
55,101
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
owner=North Vietnam
veteran=no
homecity=none
locations
54,106
52,112
47,115
55,101
endlocations
@ENDIF

; Front IV
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
count=12
owner=North Vietnam
veteran=no
homecity=none
locations
34,120
32,124
28,112
25,121
27,127
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Sapper
count=4
owner=North Vietnam
veteran=yes
homecity=none
locations
34,120
28,112
27,127
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
32,124
28,112
25,121
endlocations
@ENDIF

; Front V
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Main Force
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
26,130
21,125
22,134
17,135
13,131
15,125
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Sapper
count=3
owner=North Vietnam
veteran=yes
homecity=none
locations
26,130
22,134
17,135
15,125
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=VC Mortar
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
21,125
22,134
17,135
13,131
endlocations
@ENDIF

;--- d. TET Offensive NVN attacks  (total NVA Regular = 12; NVA Elite = 6; NVA Sapper = 2; PT-76 = 2; 57mm AA = 3; 122mm Art. = 3)
@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Regular
count=12
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Elite
count=6
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=NVA Sapper
count=2
owner=North Vietnam
veteran=Yes
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=PT-76
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=North Vietnam
@AND
CheckFlag
Who=South Vietnam
Flag=1	
State=Off
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,55
26,60
30,60
34,64
36,74
endlocations
@ENDIF

; ----------------------------------------
; 25. Easter Offensive (1972)
; ----------------------------------------

;--- a. NVN Pre-Condition for Easter Offensive (Tech 61)
@IF
TURN
turn=81
@THEN
JUSTONCE
GiveTechnology		
receiver=North Vietnam
technology=61
@ENDIF

;--- Remove Giap's Strategy (Tech 38) from North Vietnam's list of advances, which de-obsoletes the 'Soviet Military Doctrine' wonder (aka Sun Tzu's War Academy)
;--- This is to emphazise the PAVN's shift from a largely guerrilla type warfare to a modern mechanized one.
@IF
TURN
turn=81
@THEN
JUSTONCE
TakeTechnology	
whom=North Vietnam
technology=38
@ENDIF

;--- b. Give Soviet Aid III (Tech 92) 
@IF
RECEIVEDTECHNOLOGY
technology=61
receiver=North Vietnam
@AND
RANDOMTURN
denominator=6
@THEN
JUSTONCE
TEXT
Saigon Post - North Vietnamese forces launch a major offensive!
^ 
The North Vietnamese launch a nation-wide offensive that stuns both the South Vietnamese and the Americans by its magnitude. Carried out on three different fronts, it is a multi-divisional effort supported by hundreds of tanks! The scale of the assault is the largest seen since the TET offensive, and comes as most of the American forces have gone home.
^
Speculation is that the Hanoi leadership is feeling betrayed by the Chinese, after normalisation between the United States and Communist China, and has launched an all-out offensive in order to break the stalemate in the South. The longer they wait, the more the Saigon regime will be strengthened; and the more the aid received from its communist allies risks of dwindling.
ENDTEXT
GiveTechnology		
receiver=North Vietnam
technology=92
@ENDIF

;--- c. Switch rules.txt to make NVA units visible
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@THEN
JUSTONCE
Text
IMPORTANT MACV COMMUNIQUE: FILE CHANGE
^
The North Vietnamese Easter Offensive, the largest offensive operation since 300,000 Chinese volunteers had crossed the Yalu River into North Korea during the Korean War, is a radical departure from previous guerrilla tactic type offensives.
^
This is a mechanized conventional invasion designed to gain as much territory and destroy as many units of the ARVN as possible, to improve the North's negotiating position as the Paris Peace Accords.
^
From now on PAVN and VC Main Force ground troops will no longer benefit from the unit invisible flag. 
^
Save the game, Exit ToT, and run the "Nam65.bat" file. Select option 3, "PAVN Easter Offensive - SVN invasions" if the SVN/US player has previously invaded Cambodia or Laos, otherwise select option 4, "PAVN Easter Offensive - no SVN invasions". 
EndText
@ENDIF

;--- d. Add extra NVN Move to Commands

;--- DMZ - move to commands
;--- Quang Tri *
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
31,57,33,57,33,59,31,59
moveto
37,61
numbertomove=ALL
@ENDIF

;--- HUE **
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
36,60,38,60,38,62,36,62
moveto
44,66
numbertomove=ALL
@ENDIF

;--- Da Nang - I +
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
42,66,46,66,46,68,42,68
moveto
47,71
numbertomove=ALL
@ENDIF

;--- Quang Ngai
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
49,75,51,75,51,77,49,77
moveto
56,92
numbertomove=ALL
@ENDIF

;--- Qui Nhon +
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
54,90,56,90,56,94,54,94
moveto
56,98
numbertomove=ALL
@ENDIF

;--- Tuy Hoa
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
55,97,57,97,57,101,55,101
moveto
56,108
numbertomove=ALL
@ENDIF

;--- Tuy Hoa
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
55,97,57,97,57,101,55,101
moveto
56,108
numbertomove=ALL
@ENDIF

;--- Nha Trang +
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
54,106,56,106,56,112,54,112
moveto
54,116
numbertomove=ALL
@ENDIF

;--- Phan Rang-Thap+
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
50,114,54,114,54,118,50,118
moveto
44,122
numbertomove=ALL
@ENDIF

;--- Phan Thiet
@IF
RECEIVEDTECHNOLOGY
technology=92
receiver=North Vietnam
@AND
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=North Vietnam
maprect
42,120,46,120,46,124,42,124
moveto
30,122
numbertomove=ALL
@ENDIF

; ----------------------------------------
; 26. Spring Offensive (1975)
; ----------------------------------------
;--- a. NVN Pre-Condition for Spring Offensive (Tech 24)
@IF
TURN
turn=115
@THEN
JUSTONCE
GiveTechnology		
receiver=North Vietnam
technology=24
@ENDIF

;--- b. Give Soviet Aid IV (Tech 99) 

@IF
RECEIVEDTECHNOLOGY
technology=24 
receiver=North Vietnam
@AND
RANDOMTURN
denominator=4
@THEN
JUSTONCE
TEXT
Hanoi Post - The PAVN launches a major offensive against the imperialist South!
^ 
Our glorious revolutionary forces launch a nation-wide offensive whose eventual goal is the defeat of the ARVN and the surrender of the corrupt government of South Vietnam.
^
The new offensive will be different from the ill-fated Easter Offensive of 1972. The gradual impact of the American abandonment of South Vietnam on the psyche of that nation's political and military leadership and civilian population has been devastating.
^
Decreases in American military aid, which had become the lifeblood of South Vietnam's armed forces, has created material and psychological turmoil in an army steeped in the American way of war.
^
It is hoped the inability to cope with the situation will bring about the final collapse of the South Vietnamese puppet regime. 
ENDTEXT
GiveTechnology		
receiver=North Vietnam
technology=99
@ENDIF

;--- c. Add extra NVN Move to Commands

; ----------------------------------------
; 27. Chinese Intervention
; ----------------------------------------

;--- American invasion of NVN (Tech 42) activates Chinese Intervention (Tech 83)
@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=13
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=18
owner=North Vietnam
veteran=no
homecity=none
locations
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
locations
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
12,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
12,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=152mm Art.
count=3
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=85mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
27,13
22,18
23,13
18,16
17,25
16,32
26,50
21,59
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Type 59
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
13,13
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=Type 63
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
13,13
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=BM-21 Grad
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=ZSU-57
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=MIG-19 Farmer
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@THEN
JUSTONCE
CREATEUNIT
unit=MIG-17 Fresco
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
endlocations
@ENDIF

;--- Turn 2 of Chinese intervention
@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
28,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=152mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=57mm AA
count=2
owner=North Vietnam
veteran=no
homecity=none
locations
12,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=85mm AA
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
27,13
22,18
23,13
18,16
17,25
16,32
26,50
21,59
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Type 59
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
13,13
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=Type 63
count=3
owner=North Vietnam
veteran=no
homecity=none
locations
13,13
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=BM-21 Grad
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=2
@THEN
JUSTONCE
CREATEUNIT
unit=ZSU-57
owner=North Vietnam
veteran=no
homecity=none
locations
8,4
endlocations
@ENDIF

;--- Turn 3 of Chinese intervention
@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=3
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
12,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=3
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
12,2
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=3
@THEN
JUSTONCE
CREATEUNIT
unit=PVA Infantry
count=9
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=3
@THEN
JUSTONCE
CREATEUNIT
unit=122mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
TURNINTERVAL
interval=3
@THEN
JUSTONCE
CREATEUNIT
unit=152mm Art.
owner=North Vietnam
veteran=no
homecity=none
locations
2,10
endlocations
@ENDIF

;--- Chinese replacements

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=PVA Infantry
count=18
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=122mm Art.
count=2
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=152mm Art.
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=3
@THEN
CREATEUNIT
unit=PVA Type 59
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=3
@THEN
CREATEUNIT
unit=Type 63
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=4
@THEN
CREATEUNIT
unit=BM-21 Grad
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=4
@THEN
CREATEUNIT
unit=ZSU-57
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=83
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=4
@THEN
CREATEUNIT
unit=MIG-19 Farmer
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

@IF
CITYTAKEN
city=HANOI *
attacker=South Vietnam
defender=North Vietnam
@THEN
JUSTONCE
TEXT
Washington Post (AP) - North Vietnamese capital captured! 
^
After bitter fighting American forces have captured the North Vietnamese captial of Hanoi forcing the communist apparatus to flee the city. 
^
This is major setback for the communists and a major step forward in President Johson's attempts to bring the war to a successful conclusioon.
^
Reports out of China indicate Mao is enraged by the turn of events and vows to redouble efforts to defeat the capitalist forces.
ENDTEXT
CREATEUNIT
unit=PVA Infantry
count=18
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
8,4
12,2
28,2
2,10
endlocations
@ENDIF

; ----------------------------------------
; 28. Khmer Rouge
; ----------------------------------------

;--- If SVN Flag 2 (Cambodian Invasion) or Flag 4 (Cambodian Incursion) ON then give Khmer Rouge (Tech 93) to NVN
@IF
CheckFlag
Who=South Vietnam
Mask=0x14
Count=1
State=On
@THEN
JUSTONCE
GiveTechnology		
receiver=North Vietnam
technology=93
@ENDIF

;--- Activates Khmer Rouge guerrillas if received Tech 93
@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=14
CREATEUNIT
unit=Khmer Rouge
count=9
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
28,90
27,95
24,86
31,91
33,93
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=93
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=2
@THEN
JUSTONCE
CREATEUNIT
unit=Khmer Rouge
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
32,90
30,100
15,99
24,98
12,104
endlocations
@ENDIF

; ----------------------------------------
; 29. Pathet Lao
; ----------------------------------------

;--- If SVN Flag 3 (Laotian Invasion) or Flag 5 (Operation Lam Son) ON then give Pathet Lao (Tech 94) to NVN
@IF
CheckFlag
Who=South Vietnam
Mask=0x28
Count=1
State=On
@THEN
JUSTONCE
GiveTechnology		
receiver=North Vietnam
technology=94
@ENDIF

;--- Activates Pathet Lao guerrillas if received Tech 94
@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=North Vietnam
@THEN
JUSTONCE
Flag
Continuous
Who=North Vietnam
State=On
Flag=15
CREATEUNIT
unit=Pathet Lao
count=6
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
21,59
25,69
29,79
19,75
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=94
receiver=North Vietnam
@AND
RANDOMTURN 
denominator=3
@THEN
JUSTONCE
CREATEUNIT
unit=Pathet Lao
owner=North Vietnam
veteran=no
homecity=none
RANDOMIZE
locations
29,73
23,73
17,63
17,51
endlocations
@ENDIF

; ----------------------------------------
; 30. Civilians
; ----------------------------------------


; ----------------------------------------
; 31. SVN/US Victory Conditions for invasion of North Vietnam
; ----------------------------------------

;--- As part of NVN Invasion (Tech 42) set SVN flag 29 to on if capture required 4 NVN cities
@IF
CheckFlag
Who=South Vietnam
Mask=0x3C0
Count=4
State=On
@THEN
JUSTONCE
TEXT
MACV, SAIGON: Intelligence Briefing. 
^
General Thieu, the United States has captured the four cities as part of the North Vietnamese invasion objectives.
^
You must remain in possession of all cities currently under your control up to the beginning of October 1968 to win the war.
ENDTEXT
Flag
Continuous
Who=South Vietnam
State=On
Flag=29
@ENDIF

;--- If SVN/US received the NVN Invasion advance (Tech 42) but fail to hold on to all cities under its control at the start of the invasion it loses the game.
@IF
CITYTAKEN
city=AnyCity
attacker=North Vietnam
defender=South Vietnam
@AND
RECEIVEDTECHNOLOGY
technology=42
receiver=South Vietnam
@THEN
JUSTONCE
TEXT
PRESIDENTIAL PALACE, SAIGON.
^
President Thieu, with the loss of one of your cities your forces have demontrated they are unable to secure the rear areas during Amercia's offensive into North Vietnam. 
^
This combined with the People's Republic of China massive intervention on Hanoi's side has shaken your citizens faith in their ability to carry on the war to a successful conclusion and fear the wrath of the Communist nations should the struggle continue.
^
The nation is in turmoil and country wide protests call for your resignation and immediate peace talks with the North. 
^
THE WAR IS OVER! THE NORTH HAS WON!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

;--- SVN/US must capture and hold on to Hanoi, Haiphong, Son La and Viet Tri until November 1968
;--- First Mask checks if SVN/US received Tech 42 (Flag 1) and it's turn 45 (Flag 10)
;--- Second Mask checks if all required NVN and SVN cities are controlled by SVN/US
@IF
CheckFlag
Who=South Vietnam
Mask=0x402
Count=2
State=On
@AND
CheckFlag
Who=South Vietnam
Flag=29	
State=On
@THEN
JUSTONCE
TEXT
NORTH VIETNAM SURRENDERS! 
^
President Johnson's gambit to escalate the war and bring the North to terms has been successful. North Vietnam has been overrun and it's capacity to wage war destroyed.
^
Ho Chi Minh and leading members of the Lao Dong party are forced to flee to China.
^
Mao Zedong, whose army has suffered catastrophic losses, is forced to admit defeat and has no other option but to recall the troops of the People's Volunteer Army to China.
^
THE WAR IS OVER! VIETNAM IS REUNITED UNDER PRESIDENT THIEU!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

@IF
CheckFlag
Who=South Vietnam
Mask=0x402
Count=2
State=On
@AND
CheckFlag
Who=South Vietnam
Flag=29	
State=Off
@THEN
JUSTONCE
TEXT
PRESIDENT JOHNSON'S GAMBIT TO WIN THE WAR FAILS! 
^
Having failed to bring about military success on the battlefield President Johnson loses the support of the Congress and the people of the United States. 
^
No longer able to carry the heavy burden of the war Johnson resigns the presidency to vice-president Hubert Humphrey who immediately sends delegates to the Paris Peace conference to begin negotiating the withdrawal of America from the conflict.
^
President Thieu having lost the support of your primary benefactor you are compelled to sue for peace with the North. As part of the terms you resign your post and your cabinet is reshuffled to admit members of the National Liberation Front in view of holding elections and the eventual reunification of Vietnam under the North's aegis. 
^
THE WAR IS OVER! THE NORTH HAS WON!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

; ----------------------------------------
; 32. Automatic NVN Victory
; ----------------------------------------

;--- Check if Saigon and Hue are both captured by NVN
@IF
CheckFlag
Who=South Vietnam
Mask=0x600000
Count=2
State=Off
@THEN
JUSTONCE
TEXT
SOUTH VIETNAMESE GOVERNMENT COLLAPSES! 
^
The loss of both Hue, the symbolic ancient capital, and Saigon comes as a major psychological blow to the people of South Vietnam who lose complete faith in their government's ability to protect them and defeat the North.
^
Citizen protests rise up throughout the rest of the country demanding the end of hostilities, while mass desertions among the ranks of the ARVN units bring about the collapse of the South Vietnamese government.
^
President Thieu is forced to flee the country aboard an American transport plane and his cabinet resigns, while local North Vietnamese commanders station their troops in the two cities to maintain law and order. 
^
THE WAR IS OVER! SOUTH VIETNAM SURRENDERS TO HANOI GOVERNMENT!
ENDTEXT
EndGame
endscreens=yes
@ENDIF

; ----------------------------------------
; 33. Negotiations
; ----------------------------------------

;--- Hate South Vietnam
@IF
RANDOMTURN
denominator=6
@THEN
ModifyReputation
Who=South Vietnam
whom=North Vietnam
modifier=100
@ENDIF

;--- Negotiations
@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=North Vietnam
whom=South Vietnam
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=South Vietnam
whom=North Vietnam
@ENDIF


@ENDEVENTS


